From: Ian Lance Taylor Date: Fri, 23 Jan 2015 23:45:04 +0000 (+0000) Subject: re PR go/64573 (Cmd.Start swallows error from fork()/clone()) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba986acb051c567d4584a85422406bd23f1a759f;p=gcc.git 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 --- diff --git a/libgo/go/syscall/exec_unix.go b/libgo/go/syscall/exec_unix.go index 6bf28cc8ac2..a49d95bc94c 100644 --- a/libgo/go/syscall/exec_unix.go +++ b/libgo/go/syscall/exec_unix.go @@ -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()