]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] 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>
Fri, 2 Aug 2019 04:53:33 +0000 (04:53 +0000)
commit047a326569a5d75c2f5c1fd49fccb4da623b038a
treed010df417a97ccc51773a0a1f323f40162726a9e
parent3c977973949b167b91eff6db8f52570e7b13c81e
[release-branch.go1.12] 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.

Updates #33405
Fixes #33424

Change-Id: Ib1e405c3b48b11c867f183fd13eff8b73d95e3b4
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>
(cherry picked from commit 2d6ee6e89a4b30c7528d2977df4e1aa86651e4e4)
Reviewed-on: https://go-review.googlesource.com/c/go/+/188538
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/os/removeall_at.go