<preclass='rust fn'>pub fn unix_signal_source_new<'a, N: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&'a <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>, F>(<br> signum: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, <br> name: N, <br> priority: <aclass="struct"href="../../glib/source/struct.Priority.html"title="struct glib::source::Priority">Priority</a>, <br> func: F<br>) -><aclass="struct"href="../../glib/struct.Source.html"title="struct glib::Source">Source</a><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>() -><aclass="struct"href="../../glib/source/struct.Continue.html"title="struct glib::source::Continue">Continue</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> + 'static, </span></pre><divclass='docblock'><p>Adds a closure to be called by the main loop the returned <code>Source</code> is attached to whenever a
UNIX signal is raised.</p>
<p><code>func</code> will be called repeatedly every time <code>signum</code> is raised until it