Type Definition gnunet_sys::GNUNET_SIGNAL_Handler[][src]

type GNUNET_SIGNAL_Handler = Option<unsafe extern "C" fn()>;

A signal handler. Since different OSes have different signatures for their handlers, the API only gives the most restrictive signature – no arguments, no return value. Note that this will work even if the OS expects a function with arguments. However, the implementation must guarantee that this handler is not called for signals other than the one that it has been registered for.