Skip to content

Commit

Permalink
Fix Sigpoll
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 committed Dec 17, 2024
1 parent a4d52ef commit ec6c73b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tokio/src/signal/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ impl SignalKind {
///
/// On Unix systems this signal is sent when I/O operations are possible
/// on some file descriptor. By default, this signal is ignored.
#[cfg(target_os = "haiku")]
pub const fn io() -> Self {
#[cfg(not(target_os = "haiku"))]
Self(libc::SIGIO);
#[cfg(target_os = "haiku")]
Self(libc::SIGPOLL);
Self(libc::SIGPOLL)
}
#[cfg(not(target_os = "haiku"))]
pub const fn io() -> Self {
Self(libc::SIGIO)
}

/// Represents the `SIGPIPE` signal.
Expand Down

0 comments on commit ec6c73b

Please sign in to comment.