mirror of
https://github.com/golang/go
synced 2024-11-25 08:47:56 -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:
parent
e4790b5fa4
commit
7249fa773a
@ -352,6 +352,7 @@ var (
|
||||
|
||||
func getStdHandle(h int) (fd Handle) {
|
||||
r, _ := GetStdHandle(h)
|
||||
CloseOnExec(r)
|
||||
return r
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user