diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-04 13:30:24 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-05 17:02:31 -0800 |
| commit | 1bd2d2016178fe85e42d4d34868e9bc58dfd5d07 (patch) | |
| tree | 10d0249692e0ce6001d444846a96f282c9aa7c34 /src/libstd/sys/unix/mod.rs | |
| parent | 0fff73b64a9658c9a3aa228488964d09e63115b4 (diff) | |
| download | rust-1bd2d2016178fe85e42d4d34868e9bc58dfd5d07.tar.gz rust-1bd2d2016178fe85e42d4d34868e9bc58dfd5d07.zip | |
std: Atomically set CLOEXEC for sockets if possible
This commit adds support for creating sockets with the `SOCK_CLOEXEC` flag. Support for this flag was added in Linux 2.6.27, however, and support does not exist on platforms other than Linux. For this reason we still have the same fallback as before but just special case Linux if we can.
Diffstat (limited to 'src/libstd/sys/unix/mod.rs')
0 files changed, 0 insertions, 0 deletions
