Function gnunet_sys::GNUNET_SIGNAL_handler_install [−][src]
pub unsafe extern "C" fn GNUNET_SIGNAL_handler_install(
signal: c_int,
handler: GNUNET_SIGNAL_Handler
) -> *mut GNUNET_SIGNAL_Context
Install a signal handler that will be run if the given signal is received.
@param signal the number of the signal @param handler the function to call @return context that can be used to restore, NULL on error