diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-23 23:45:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-23 23:45:04 +0000 |
commit | ba986acb051c567d4584a85422406bd23f1a759f (patch) | |
tree | 33a03724a97ff1d039cf8122da924ce26f693ab9 /libgo/go | |
parent | 9d8d3ba2bcef23235ac9a48cba02e91f104eac12 (diff) | |
download | gcc-ba986acb051c567d4584a85422406bd23f1a759f.zip gcc-ba986acb051c567d4584a85422406bd23f1a759f.tar.gz gcc-ba986acb051c567d4584a85422406bd23f1a759f.tar.bz2 |
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
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/syscall/exec_unix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/syscall/exec_unix.go b/libgo/go/syscall/exec_unix.go index 6bf28cc..a49d95b 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() |