about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-02-04 15:23:26 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-05 17:11:02 -0800
commit812b309c4791e08aa5bd8dda26c820af43c5fa29 (patch)
tree9f4a23ff899d0a98e857fbba98269dc8d9fffea2 /src/libstd/sync
parent46315184cb74a98dbd10a0d300a0c3ee62b78049 (diff)
downloadrust-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/libstd/sync')
0 files changed, 0 insertions, 0 deletions