[dovecot-cvs] dovecot/src/lib lib-signals.c, 1.5, 1.6 lib-signals.h, 1.1.1.1, 1.2

cras at dovecot.org cras at dovecot.org
Sat Nov 6 22:23:02 EET 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv8987/lib

Modified Files:
	lib-signals.c lib-signals.h 
Log Message:
Changed lib_signal_hup to lib_signal_hup_count.



Index: lib-signals.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/lib-signals.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- lib-signals.c	24 Aug 2004 10:12:00 -0000	1.5
+++ lib-signals.c	6 Nov 2004 20:22:59 -0000	1.6
@@ -6,17 +6,19 @@
 #include <stdio.h>
 #include <signal.h>
 
-int lib_signal_hup, lib_signal_kill;
+int lib_signal_kill;
+unsigned int lib_signal_hup_count;
+
 static void (*quit_handler) (int);
 
-static void sig_hup(int signo)
+static void sig_hup(int signo __attr_unused__)
 {
 #ifndef HAVE_SIGACTION
 	/* some systems may have changed the signal handler to default one */
         signal(SIGHUP, sig_hup);
 #endif
 
-	lib_signal_hup = signo;
+        lib_signal_hup_count++;
 }
 
 static void sig_quit(int signo)
@@ -36,7 +38,7 @@
 #endif
 
         lib_signal_kill = 0;
-	lib_signal_hup = 0;
+	lib_signal_hup_count = 0;
 	quit_handler = sig_quit_handler;
 
 	/* signal() behaviour is a bit inconsistent between systems

Index: lib-signals.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/lib-signals.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- lib-signals.h	9 Aug 2002 09:15:48 -0000	1.1.1.1
+++ lib-signals.h	6 Nov 2004 20:23:00 -0000	1.2
@@ -1,7 +1,8 @@
 #ifndef __LIB_SIGNALS_H
 #define __LIB_SIGNALS_H
 
-extern int lib_signal_hup, lib_signal_kill;
+extern int lib_signal_kill;
+extern unsigned int lib_signal_hup_count;
 
 void lib_init_signals(void (*sig_quit_handler) (int));
 



More information about the dovecot-cvs mailing list