1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin dragonfly solaris
9 // Try to open a pipe with O_CLOEXEC set on both file descriptors.
10 func forkExecPipe(p
[]int) error
{
15 _
, err
= fcntl(p
[0], F_SETFD
, FD_CLOEXEC
)
19 _
, err
= fcntl(p
[1], F_SETFD
, FD_CLOEXEC
)