A convenience function for g_unix_signal_source_new(), which attaches to the default GMainContext. You can remove the watch using g_source_remove(). Since 2.30
Signal number
Callback
Data for handler
An ID (greater than 0) for the event source
See Implementation
A convenience function for g_unix_signal_source_new(), which attaches to the default GMainContext. You can remove the watch using g_source_remove(). Since 2.30