terminate cleanly on SIGHUP
authorPaul Mangan <paul@claws-mail.org>
Tue, 6 Jul 2004 07:20:08 +0000 (07:20 +0000)
committerPaul Mangan <paul@claws-mail.org>
Tue, 6 Jul 2004 07:20:08 +0000 (07:20 +0000)
AUTHORS
ChangeLog.claws
configure.ac
src/main.c

diff --git a/AUTHORS b/AUTHORS
index add183a..dece2f1 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -206,3 +206,4 @@ contributors (beside the above; based on Changelog)
        Fabien Vantard
        Reza Pakdel
        Stephan Sachse
+       Thomas Gilgin
index 3afb206..8ea109d 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-06 [paul]      0.9.12cvs10
+
+       * src/main.c
+               terminate cleanly on SIGHUP. Patch submitted by
+               Thomas Gilgin <thg@karate-muellheim.de>
+
 2004-07-05 [christoph] 0.9.12cvs9
 
        * src/inc.c
index 4d97f6d..aa05a3b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=9
+EXTRA_VERSION=10
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index d15a0cb..313dbdd 100644 (file)
@@ -934,6 +934,9 @@ static void install_basic_sighandlers()
 #ifdef SIGINT
        sigaddset(&mask, SIGINT);
 #endif
+#ifdef SIGHUP
+       sigaddset(&mask, SIGHUP);
+#endif
 
        act.sa_handler = quit_signal_handler;
        act.sa_mask    = mask;
@@ -945,6 +948,9 @@ static void install_basic_sighandlers()
 #ifdef SIGINT
        sigaction(SIGINT, &act, 0);
 #endif 
+#ifdef SIGHUP
+       sigaction(SIGHUP, &act, 0);
+#endif 
 
        sigprocmask(SIG_UNBLOCK, &mask, 0);
 }