[dovecot-cvs] dovecot/src/lib alarm-hup.c,1.1,1.2
cras at procontrol.fi
cras at procontrol.fi
Wed Dec 4 18:56:54 EET 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv21918/lib
Modified Files:
alarm-hup.c
Log Message:
Set all required sigaction values when deinitializing.
Index: alarm-hup.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/alarm-hup.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- alarm-hup.c 28 Oct 2002 04:18:26 -0000 1.1
+++ alarm-hup.c 4 Dec 2002 16:56:52 -0000 1.2
@@ -102,6 +102,9 @@
alarm(0);
#ifdef HAVE_SIGACTION
+ if (sigemptyset(&act.sa_mask) < 0)
+ i_fatal("sigemptyset(): %m");
+ act.sa_flags = 0;
act.sa_handler = SIG_DFL;
while (sigaction(SIGALRM, &act, NULL) < 0) {
if (errno != EINTR)
More information about the dovecot-cvs
mailing list