mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
signal: Move SIGINFO to a BSD-specific submodule
This commit is contained in:
parent
8ad66d296f
commit
bcd42d11d9
11
src/unix.rs
11
src/unix.rs
@ -32,9 +32,14 @@ use tokio_io::IoFuture;
|
||||
|
||||
pub use self::libc::{SIGUSR1, SIGUSR2, SIGINT, SIGTERM};
|
||||
pub use self::libc::{SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTRAP};
|
||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos",
|
||||
target_os = "netbsd", target_os = "openbsd"))]
|
||||
pub use self::libc::SIGINFO;
|
||||
|
||||
/// BSD-specific definitions
|
||||
mod bsd {
|
||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd",
|
||||
target_os = "macos", target_os = "netbsd",
|
||||
target_os = "openbsd"))]
|
||||
pub use super::libc::SIGINFO;
|
||||
}
|
||||
|
||||
// Number of different unix signals
|
||||
// (FreeBSD has 33)
|
||||
|
Loading…
x
Reference in New Issue
Block a user