diff options
Diffstat (limited to 'vendor/tokio/tests/support/signal.rs')
-rw-r--r-- | vendor/tokio/tests/support/signal.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/tokio/tests/support/signal.rs b/vendor/tokio/tests/support/signal.rs new file mode 100644 index 000000000..ea0605876 --- /dev/null +++ b/vendor/tokio/tests/support/signal.rs @@ -0,0 +1,7 @@ +pub fn send_signal(signal: libc::c_int) { + use libc::{getpid, kill}; + + unsafe { + assert_eq!(kill(getpid(), signal), 0); + } +} |