diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-04 15:23:26 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-05 17:11:02 -0800 |
| commit | 812b309c4791e08aa5bd8dda26c820af43c5fa29 (patch) | |
| tree | 9f4a23ff899d0a98e857fbba98269dc8d9fffea2 /src/liballoc_system | |
| parent | 46315184cb74a98dbd10a0d300a0c3ee62b78049 (diff) | |
| download | rust-812b309c4791e08aa5bd8dda26c820af43c5fa29.tar.gz rust-812b309c4791e08aa5bd8dda26c820af43c5fa29.zip | |
std: Try to use pipe2 on Linux for pipes
This commit attempts to use the `pipe2` syscall on Linux to atomically set the CLOEXEC flag for pipes created. Unfortunately this was added in 2.6.27 so we have to dynamically determine whether we can use it or not. This commit also updates the `fds-are-cloexec.rs` test to test stdio handles for spawned processes as well.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
