From 58ad99d7fae39b61106415ff6d0569dcf7cceb70 Mon Sep 17 00:00:00 2001 From: Rain Date: Thu, 28 Nov 2024 03:18:27 +0000 Subject: [PATCH] signal: add SignalKind::info on illumos illumos has supported SIGINFO for a long time; see https://github.com/illumos/illumos-gate/commit/19d32b9ab53d17ac6605971e14c45a5281f8d9bb. --- tokio/src/signal/unix.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tokio/src/signal/unix.rs b/tokio/src/signal/unix.rs index 59c0b5d9248..e75bbbfbf7f 100644 --- a/tokio/src/signal/unix.rs +++ b/tokio/src/signal/unix.rs @@ -130,7 +130,8 @@ impl SignalKind { target_os = "freebsd", target_os = "macos", target_os = "netbsd", - target_os = "openbsd" + target_os = "openbsd", + target_os = "illumos" ))] pub const fn info() -> Self { Self(libc::SIGINFO)