[dovecot-cvs] dovecot/src/auth main.c,1.55,1.56

cras at dovecot.org cras at dovecot.org
Thu May 4 01:58:55 EEST 2006


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

Modified Files:
	main.c 
Log Message:
Use lib_signals_ignore() for signals we really want ignored.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- main.c	14 Apr 2006 10:22:55 -0000	1.55
+++ main.c	3 May 2006 22:58:53 -0000	1.56
@@ -212,12 +212,12 @@
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
-        lib_signals_set_handler(SIGPIPE, FALSE, NULL, NULL);
+        lib_signals_ignore(SIGPIPE);
         lib_signals_set_handler(SIGALRM, FALSE, NULL, NULL);
 
 	/* If auth caches aren't used, just ignore these signals */
-	lib_signals_set_handler(SIGHUP, FALSE, NULL, NULL);
-	lib_signals_set_handler(SIGUSR2, FALSE, NULL, NULL);
+	lib_signals_ignore(SIGHUP);
+	lib_signals_ignore(SIGUSR2);
 
 	mech_init();
 	auth_init(auth);



More information about the dovecot-cvs mailing list