]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 baab0bd905e56fee0a7a821e0c536e15b532db5f..c20bb7ac98c5d05a9c63c9103a69873b257f0dad 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_sigaction(SIGHUP, SIG_IGN);
 }
 
 /* kill every process in the process group and exit */