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 add183a63b1dde2633359a1d94188f1cf9399c37..dece2f138e102c45762d48b9bc2f87a1761a3b39 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 3afb2065c52aa3ee9b3a9e4490236fc03ac68b15..8ea109d6f8cb831ea6ce3093ce5eb3de6f13ec03 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 4d97f6df2723271d01f239310ce605f5d2e0433e..aa05a3b60834faeec8a98c490e3edc8355d01999 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 d15a0cbc7817e51e7c100bf89a2f2ac1c8f425bb..313dbddaaa5114ef1dc5502493425b076534d489 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);
 }