diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-16 21:25:50 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-18 13:04:31 -0700 |
commit | 74ea3c7220e616ada07544d9d82d39acd12c2588 (patch) | |
tree | 9b3937d78e34e05e4acd1866e69251ec83794c77 /test/sys/mod.rs | |
parent | 79ad5fa487d3d746aa3d03dc70bb133b96053d40 (diff) | |
download | nix-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 'test/sys/mod.rs')
-rw-r--r-- | test/sys/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sys/mod.rs b/test/sys/mod.rs index 4edb6af0..2ecc36f8 100644 --- a/test/sys/mod.rs +++ b/test/sys/mod.rs @@ -2,6 +2,8 @@ mod test_signal; #[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "ios", target_os = "netbsd", target_os = "macos", target_os = "linux"))] mod test_aio; +#[cfg(target_os = "linux")] +mod test_signalfd; mod test_socket; mod test_sockopt; mod test_termios; |