mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
1bd2d20161
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.