Adds SIGHUP to signal handling.
authorDominik George <nik@naturalnet.de>
Sat, 14 Sep 2013 00:29:20 +0200
changeset 2071 a5acc2a1af53
parent 2070 dd8ae0abfc68
child 2072 0722fe4b7580
Adds SIGHUP to signal handling.
mcabber/mcabber/main.c
--- 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);