mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -352,6 +352,7 @@ var (
|
|||
|
||||
func getStdHandle(h int) (fd Handle) {
|
||||
r, _ := GetStdHandle(h)
|
||||
CloseOnExec(r)
|
||||
return r
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue