gui: Don't ignore SIGHUP.
authorAndre Noll <maan@systemlinux.org>
Mon, 17 Feb 2014 21:18:43 +0000 (22:18 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 17 Feb 2014 21:18:43 +0000 (22:18 +0100)
It results in para_gui eating 100% CPU if the terminal window is
closed. Not ignoring the signal makes para_gui die instead.

This bug was present since "day 1".

gui.c

diff --git a/gui.c b/gui.c
index baab0bd..c20bb7a 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -560,7 +560,6 @@ static void setup_signal_handling(void)
        para_install_sighandler(SIGCHLD);
        para_install_sighandler(SIGWINCH);
        para_install_sighandler(SIGUSR1);
        para_install_sighandler(SIGCHLD);
        para_install_sighandler(SIGWINCH);
        para_install_sighandler(SIGUSR1);
-       para_sigaction(SIGHUP, SIG_IGN);
 }
 
 /* kill every process in the process group and exit */
 }
 
 /* kill every process in the process group and exit */