]> Cypherpunks repositories - gostls13.git/commit
os/exec: don't crash when out of fds
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 14 Sep 2012 20:40:22 +0000 (13:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 14 Sep 2012 20:40:22 +0000 (13:40 -0700)
commit5c5c2c8112f774b118b9251eb15c2df529ad454c
tree57f1bd49993cea6c86cb7c3bc68958ad64faa531
parentcc06593c681878a2a87f3612aa024e69a1ac074b
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