Open
Description
I'm trying to write a signal handler that gets some usable value, with SigHandler::SigAction, but, for example, siginfo
is stopping me right now:
extern "C" fn handle_sigint(_:i32, _ : ::nix::sys::signal::signal::siginfo, ptr : *mut ::nix::sys::ioctl::libc::c_void)
->
error: failed to resolve. Could not find `signal` in `nix::sys::signal`
error: type name `nix::sys::signal::signal::siginfo` is undefined or not in scope
,
extern "C" fn handle_sigint(_:i32, _ : ::nix::sys::signal::siginfo, ptr : *mut ::nix::sys::ioctl::libc::c_void)
->
error: type name `nix::sys::signal::siginfo` is undefined or not in scope
How do I really do it?
In general working with signals using nix-rust feels like interfacing with C instead of using rustic wrappers... Are there any more high-level libraries? Maybe I just want chan_signal.