summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b73fd31)
raw | patch | inline | side by side (parent: b73fd31)
author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 10:28:39 +0000 (11:28 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 10:28:39 +0000 (11:28 +0100) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index bc16eac8cc8b0a9ada881c2c7a44eb2dbd72de24..953f715afeaa81af9eba12d75f7e0af064ceaa30 100644 (file)
--- a/src/main.c
+++ b/src/main.c
g_main_loop_quit(main_loop);
}
-
-static void
-catch_sigcont(gcc_unused int sig)
-{
- if (1 != write(sigwinch_pipes[1], "", 1))
- exit(EXIT_FAILURE);
-}
-
static gboolean
sigwinch_event(gcc_unused GIOChannel *source,
gcc_unused GIOCondition condition, gcc_unused gpointer data)
/* setup signal behavior - SIGCONT */
- act.sa_handler = catch_sigcont;
+ act.sa_handler = catch_sigwinch;
if (sigaction(SIGCONT, &act, NULL) < 0) {
perror("sigaction(SIGCONT)");
exit(EXIT_FAILURE);