summaryrefslogtreecommitdiff
path: root/src/sys/mod.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-07-16 21:25:50 -0700
committerBryant Mairs <bryant@mai.rs>2017-07-18 13:04:31 -0700
commit74ea3c7220e616ada07544d9d82d39acd12c2588 (patch)
tree9b3937d78e34e05e4acd1866e69251ec83794c77 /src/sys/mod.rs
parent79ad5fa487d3d746aa3d03dc70bb133b96053d40 (diff)
downloadnix-74ea3c7220e616ada07544d9d82d39acd12c2588.zip
Remove signalfd feature in favor of conditional compilation
Note that this is now only available for Linux as support is missing in libc for Android (see rust-lang/libc#671). As part of this work the SIGUSR2 signal mutex was altered to be a general signal mutex. This is because all signal handling is shared across all threads in the Rust test harness, so if you alter one signal, depending on whether it's additive or may overwrite the mask for other signals, it could break the other ones. Instead of putting this on the user, just broaden the scope of the mutex so that any altering of signal handling needs to use it.
Diffstat (limited to 'src/sys/mod.rs')
-rw-r--r--src/sys/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs
index 796a00a1..9636f93d 100644
--- a/src/sys/mod.rs
+++ b/src/sys/mod.rs
@@ -23,8 +23,8 @@ pub mod sendfile;
pub mod signal;
-#[cfg(any(target_os = "linux", target_os = "android"))]
-#[cfg(feature = "signalfd")]
+// FIXME: Add to Android once libc#671 lands in a release
+#[cfg(target_os = "linux")]
pub mod signalfd;
pub mod socket;