UnixUtils.signalAdd

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

struct UnixUtils
static
uint
signalAdd

Parameters

signum int

Signal number

handler GSourceFunc

Callback

userData void*

Data for handler

Return Value

Type: uint

An ID (greater than 0) for the event source

Meta

Since

2.30