1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:27:57 -07:00

syscall: mark stdin, stdout and stderr as non-inheritable by child process

Fixes #2250.

R=golang-dev, hectorchu
CC=golang-dev, vincent.vanackere
https://golang.org/cl/5086050
This commit is contained in:
Alex Brainman 2011-09-23 18:16:13 +10:00
parent e4790b5fa4
commit 7249fa773a

View File

@ -352,6 +352,7 @@ var (
func getStdHandle(h int) (fd Handle) {
r, _ := GetStdHandle(h)
CloseOnExec(r)
return r
}