mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os,syscall: fix windows build
make syscall.ProcAttr.Files be []uintptr
all.bash passes on Linux.
things seem to compile on GOOS={darwin,windows}
R=golang-dev, mattn.jp, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5653055
This commit is contained in:
parent
09f6a49194
commit
fbab6d8512
8 changed files with 19 additions and 15 deletions
|
|
@ -39,8 +39,10 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
|
|||
i int
|
||||
)
|
||||
|
||||
// guard against side effects of shuffling fds below.
|
||||
fd := append([]int(nil), attr.Files...)
|
||||
fd := make([]int, len(attr.Files))
|
||||
for i, ufd := range attr.Files {
|
||||
fd[i] = int(ufd)
|
||||
}
|
||||
|
||||
darwin := runtime.GOOS == "darwin"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue