diff options
| author | Roland Shoemaker <roland@golang.org> | 2023-07-12 14:01:26 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-07-25 16:33:33 +0000 |
| commit | d4dd1de19fcef835fca14ad8cb590dbfcf8e9859 (patch) | |
| tree | a5e12f9f95cbd8ccdbe07c8f653d373563c840f2 /src/os/exec | |
| parent | 862fa6d099fb046e90efd537b2c0ac2667c23d90 (diff) | |
| download | go-d4dd1de19fcef835fca14ad8cb590dbfcf8e9859.tar.xz | |
runtime: enforce standard file descriptors open on init on unix
On Unix-like platforms, enforce that the standard file descriptions (0,
1, 2) are always open during initialization. If any of the FDs are
closed, we open them pointing at /dev/null, or fail.
Fixes #60641
Change-Id: Iaab6b3f3e5ca44006ae3ba3544d47da9a613f58f
Reviewed-on: https://go-review.googlesource.com/c/go/+/509020
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions
