From ba986acb051c567d4584a85422406bd23f1a759f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 23 Jan 2015 23:45:04 +0000 Subject: [PATCH] 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 --- libgo/go/syscall/exec_unix.go | 1 + 1 file changed, 1 insertion(+) 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() -- 2.30.2