mirror of
https://github.com/golang/sys.git
synced 2026-01-29 15:12:09 +03:00
windows: do not change stdio handle inheritance
This CL stops changing inheritance flag of stdint, stdout and stderr handles. Fixes golang/go#52498 Change-Id: Ic786f660b457af99a0a975b357c35c36bc7f2b48 Reviewed-on: https://go-review.googlesource.com/c/sys/+/402714 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Peter Weinberger <pjw@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
committed by
Than McIntosh
parent
9388b58f71
commit
84afa8d3f7
@@ -623,7 +623,6 @@ var (
|
||||
|
||||
func getStdHandle(stdhandle uint32) (fd Handle) {
|
||||
r, _ := GetStdHandle(stdhandle)
|
||||
CloseOnExec(r)
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user