]> Cypherpunks repositories - gostls13.git/commit
syscall: do not change stdio handle inheritance
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 29 Apr 2021 05:38:56 +0000 (15:38 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 8 May 2021 05:57:31 +0000 (05:57 +0000)
commit4c8f48ed4f3db0e3ba376e6b7a261d26b41d8dd0
treed78194e06b262be9110289d35eb7d849a0250f7f
parent9d0819b27ca248f9949e7cf6bf7cb9fe7cf574e8
syscall: do not change stdio handle inheritance

Before the CL 288297 all Go process handles had to be made
non-inheritable - otherwise they would escape into the child process.
But now this is not necessary.

This CL stops changing inheritance flag of stdint, stdout and stderr
handles.

Fixes #44876

Change-Id: Ib8fcf8066c30282293d96c34486b01b4c04f7116
Reviewed-on: https://go-review.googlesource.com/c/go/+/316269
Trust: Alex Brainman <alex.brainman@gmail.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/syscall/syscall_windows.go
src/syscall/syscall_windows_test.go