From d6f2922e91928b5191a5c5f1b3a6b320712b5ce3 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 29 Jan 2013 20:52:43 +0000 Subject: libgo: Update Go library to master revision 15489/921e53d4863c. From-SVN: r195560 --- libgo/go/syscall/exec_unix.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libgo/go/syscall/exec_unix.go') diff --git a/libgo/go/syscall/exec_unix.go b/libgo/go/syscall/exec_unix.go index e51878e..d4aa959 100644 --- a/libgo/go/syscall/exec_unix.go +++ b/libgo/go/syscall/exec_unix.go @@ -219,13 +219,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) ForkLock.Lock() // Allocate child status pipe close on exec. - if err = Pipe(p[0:]); err != nil { - goto error - } - if _, err = fcntl(p[0], F_SETFD, FD_CLOEXEC); err != nil { - goto error - } - if _, err = fcntl(p[1], F_SETFD, FD_CLOEXEC); err != nil { + if err = forkExecPipe(p[:]); err != nil { goto error } -- cgit v1.1