Function glib::source::child_watch_add
[−]
[src]
pub fn child_watch_add<'a, N: Into<Option<&'a str>>, F>(
pid: u32,
func: F
) -> SourceId where
F: FnMut(u32, i32) + Send + 'static,
Adds a closure to be called by the main loop the returned Source is attached to when a child
process exits.
func will be called when pid exits