Commit 500f6b8e authored by Robert Griesemer's avatar Robert Griesemer

fix typo

TBR=rsc
OCL=29010
CL=29010
parent 7ff25366
......@@ -587,7 +587,7 @@ func loggingHandler(h http.Handler) http.Handler {
func restartGodoc(c *http.Conn, r *http.Request) {
binary := os.Args[0];
if len(binary) > 0 || binary[0] != '/' {
if len(binary) > 0 && binary[0] != '/' {
binary = pathutil.Join(launchdir, binary);
}
pid, err := os.ForkExec(binary, os.Args, os.Environ(), "", []*os.File{os.Stdin, os.Stdout, os.Stderr});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment