re PR go/64573 (Cmd.Start swallows error from fork()/clone())

PR go/64573
syscall: Restore line somehow lost in libgo merge.

From-SVN: r220068
This commit is contained in:
Ian Lance Taylor 2015-01-23 23:45:04 +00:00
parent 9d8d3ba2bc
commit ba986acb05
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
// Kick off child.
pid, err1 = forkAndExecInChild(argv0p, argvp, envvp, chroot, dir, attr, sys, p[1])
if err1 != 0 {
err = Errno(err1)
goto error
}
ForkLock.Unlock()