Age | Commit message (Collapse) | Author | Files | Lines |
|
Back in 2011 SIGWINCH couldn't be used with
g_unix_signal_add. This has changed in 2.54 (released Sep. 2017).
That means we can drop our wrapper now.
|
|
unix_signal.c:140:2: warning: ISO C90 forbids mixed declarations
and code [-Wdeclaration-after-statement]
GSource *source;
^
|
|
Doesn't happen on linux, as we have signalfd there, but
would be triggered for other operating systems.
warning: missing braces around initializer [-Wmissing-braces]
sigaction(signum, &(struct sigaction){handler}, NULL);
^
unix_signal.c:130:39: note: (near initialization for '(anonymous)')
unix_signal.c:130:29: warning: missing initializer for field 'sa_mask' of 'struct sigaction' [-Wmissing-field-initializers]
sigaction(signum, &(struct sigaction){handler}, NULL);
^
|
|
|
|
|
|
If kqueue can be added as well, our homegrown kinda ugly
signal dispatcher could be killed.
|
|
There is a g_unix_signal_new function in glib as well now,
but that is only allowed to be used for SIGINT, SIGHUP and SIGTERM,
so we have to stay with our own.
|