diff options
author | Elliott Hughes <enh@google.com> | 2018-08-03 15:54:18 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-08-03 15:54:18 -0700 |
commit | 9b6fefd89bfdad7bbce10264754dac701c664414 (patch) | |
tree | 1519b2b2186964c44f9122e0c45c0950cb3a851f /libc/malloc_hooks/malloc_hooks.cpp | |
parent | b0c8a01de1dafc1e47f74895d00ca82429f851b3 (diff) |
Make all popen(3) file descriptors O_CLOEXEC.
POSIX says "The popen() function shall ensure that any streams from
previous popen() calls that remain open in the parent process are closed
in the new child process". It doesn't appear to disallow all popen(3) file
descriptors from being O_CLOEXEC, and it's not obvious why anyone would want
them inherited. Let's see if we can make the stricter guarantee...
Bug: N/A
Test: ran tests
Change-Id: I2c85170d730b211637afb8ba10df150ca3237262
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions