summaryrefslogtreecommitdiff
path: root/src/sys/socket.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2014-10-06 18:11:03 -0700
committerCarl Lerche <me@carllerche.com>2014-10-06 18:11:03 -0700
commitc976be575f4fefcf03a70c5b87f898388150c8aa (patch)
tree9d00323114f31875de7c241476116e0fa239b4e5 /src/sys/socket.rs
parent3ecbe3364aa56f3352a07a85b146156bb246f515 (diff)
downloadnix-c976be575f4fefcf03a70c5b87f898388150c8aa.zip
Implement improved feature detection on Linux
Diffstat (limited to 'src/sys/socket.rs')
-rw-r--r--src/sys/socket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket.rs b/src/sys/socket.rs
index edbbad97..8a99f708 100644
--- a/src/sys/socket.rs
+++ b/src/sys/socket.rs
@@ -162,7 +162,7 @@ mod consts {
}
pub fn socket(domain: AddressFamily, mut ty: SockType, flags: SockFlag) -> SysResult<Fd> {
- let feat_atomic = features::atomic_cloexec();
+ let feat_atomic = features::socket_atomic_cloexec();
if feat_atomic {
ty = ty | flags.bits();