Adds SIGHUP to signal handling.
--- a/mcabber/mcabber/main.c Sun Apr 28 11:43:00 2013 +0200
+++ b/mcabber/mcabber/main.c Sat Sep 14 00:29:20 2013 +0200
@@ -118,6 +118,8 @@
mcabber_terminate("Killed by SIGTERM");
} else if (signum == SIGINT) {
mcabber_terminate("Killed by SIGINT");
+ } else if (signum == SIGHUP) {
+ mcabber_terminate("Killed by SIGHUP");
#ifdef USE_SIGWINCH
} else if (signum == SIGWINCH) {
if (scr_curses_status())
@@ -332,6 +334,7 @@
signal(SIGTERM, sig_handler);
signal(SIGINT, sig_handler);
+ signal(SIGHUP, sig_handler);
signal(SIGCHLD, sig_handler);
#ifdef USE_SIGWINCH
signal(SIGWINCH, sig_handler);