From d60ed0ef3ec58193718b9d3bcd672bafc970c5b3 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 23 Jan 2015 23:45:04 +0000 Subject: PR go/64573 syscall: Restore line somehow lost in libgo merge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220068 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/syscall/exec_unix.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libgo/go/syscall') 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() -- cgit v1.2.1