Function

GLib-2.0GLibunix_signal_addSince 2.30

  • A convenience function for g_unix_signal_source_new(), which attaches to the default GLib.MainContext. You can remove the watch using g_source_remove().

    Parameters

    • priority: number

      the priority of the signal source. Typically this will be in the range between G_PRIORITY_DEFAULT and G_PRIORITY_HIGH.

    • signum: number

      Signal number

    • handler: SourceFunc

      Callback

    Returns number

    An ID (greater than 0) for the event source

    2.30