diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:26:06 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:45:39 +0100 |
commit | 3d0e6d54029713b158a9c53ed7956a49074db9bf (patch) | |
tree | b4ef30da4fb2b99f9de2f4bb7851f2039e27aa0d /src/interface.c | |
parent | cfe267835813b684b9c8ef81b096c2c25263f544 (diff) | |
download | pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.tar.gz pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.tar.bz2 pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c index 7c37611..380eae9 100644 --- a/src/interface.c +++ b/src/interface.c @@ -41,7 +41,7 @@ #include <sys/signalfd.h> #include <signal.h> #else -#include "unix_signal.h" +#include <glib-unix.h> #endif static void @@ -373,8 +373,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) |