]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] os/exec: don't crash when out of fds
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Sep 2012 19:55:12 +0000 (05:55 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Sep 2012 19:55:12 +0000 (05:55 +1000)
commit4ba17d5097640caadbbe8df5663ce6d681359b49
tree5532e8554500ea0c30c0e2ed2c9cd0d7c784b87f
parent92125eecb540e43fe42f1501224973f7762cd580
[release-branch.go1] os/exec: don't crash when out of fds

««« backport 00e1feaa9218
os/exec: don't crash when out of fds

Command.Start could crash before if no fds were available
because a nil *os.File of /dev/null was added to the cleanup
list, which crashed before returning the proper error.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6514043

»»»
src/pkg/os/exec/exec.go