We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74257a commit 6d8ea19Copy full SHA for 6d8ea19
src/linux/mod.rs
@@ -68,7 +68,12 @@ impl KickSignal {
68
extern "C" fn handle_signal(_signal: libc::c_int) {}
69
// SAFETY: We don't use the `signal`'s return value and use an empty handler.
70
// (Sidenote: SIG_DFL and SIG_IGN don't do the trick.)
71
- let res = unsafe { libc::signal(Self::get(), handle_signal as libc::sighandler_t) };
+ let res = unsafe {
72
+ libc::signal(
73
+ Self::get(),
74
+ handle_signal as *const () as libc::sighandler_t,
75
+ )
76
+ };
77
nix::errno::Errno::result(res).map(drop)
78
}
79
0 commit comments