A convenience function for SignalSource, which attaches to the default MainContext.
You can remove the watch using remove.
| signum |
Signal number |
| handler |
Callback |
| priority |
the priority of the signal source. Typically this will be in the range between DEFAULT and HIGH. |
| notify |
DestroyNotify for |
| user_data |
Data for |
|
An ID (greater than 0) for the event source |