Function glib::source::unix_signal_source_new[][src]

pub fn unix_signal_source_new<'a, N: Into<Option<&'a str>>, F>(
    signum: i32,
    name: N,
    priority: Priority,
    func: F
) -> Source where
    F: FnMut() -> Continue + Send + 'static, 

Adds a closure to be called by the main loop the returned Source is attached to whenever a UNIX signal is raised.

func will be called repeatedly every time signum is raised until it returns Continue(false).