summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-13 05:26:06 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-15 11:07:11 +0100
commit4aa2b7230439dd1c5c357b685365e915f3171aa2 (patch)
tree0535dda8d1ebf3ebfa84ccee534e4524afb77b8e /src/interface.c
parentf67fa6dbefc2de64ed31b77fc49b6c3f67c53705 (diff)
downloadpa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.tar.gz
pa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.tar.bz2
pa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.zip
Replace our custom signalfd() fallback with glib one (available as of 2.54)
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.
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c
index 27c937c..c7d6d5e 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -35,7 +35,7 @@
#include <sys/signalfd.h>
#include <signal.h>
#else
-#include "unix_signal.h"
+#include <glib-unix.h>
#endif
static void
@@ -286,8 +286,8 @@ interface_init(struct interface *ifc)
}
#else
/* register event handler for resize and input */
- ifc->resize_source_id = unix_signal_add(SIGWINCH,
- interface_resize, ifc);
+ ifc->resize_source_id = g_unix_signal_add(SIGWINCH,
+ interface_resize, ifc);
#endif
input_channel = g_io_channel_unix_new(STDIN_FILENO);
if (!input_channel)