]> Cypherpunks repositories - gostls13.git/commit
os: enable the close-on-exec flag for openFdAt
authorBaokun Lee <nototon@gmail.com>
Thu, 1 Aug 2019 16:31:57 +0000 (00:31 +0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 1 Aug 2019 20:37:08 +0000 (20:37 +0000)
commit2d6ee6e89a4b30c7528d2977df4e1aa86651e4e4
tree6b1ff898b3835c10ec6361e9e211d9559d372a9f
parente7c51cad71126c40bf130db30c35953321f32c9d
os: enable the close-on-exec flag for openFdAt

There's a race here with fork/exec, enable the close-on-exec flag
for the new file descriptor.

Fixes #33405

Change-Id: If95bae97a52b7026a930bb3427e47bae3b0032ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/188537
Run-TryBot: Baokun Lee <nototon@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/removeall_at.go