summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/clock.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-06-26 02:48:44 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-06-26 02:48:44 +0000
commitfc4e7b69e3f764d3a1d9157868bc6965ef1db7d6 (patch)
treeb35f716ab0dae216026e8ad27c85a951ee743a03 /contrib/sendmail/libsm/clock.c
parentfaacdfb2c2946459651449cedf08a1bc29aee731 (diff)
downloadFreeBSD-src-fc4e7b69e3f764d3a1d9157868bc6965ef1db7d6.zip
FreeBSD-src-fc4e7b69e3f764d3a1d9157868bc6965ef1db7d6.tar.gz
Import sendmail 8.12.5
Diffstat (limited to 'contrib/sendmail/libsm/clock.c')
-rw-r--r--contrib/sendmail/libsm/clock.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/sendmail/libsm/clock.c b/contrib/sendmail/libsm/clock.c
index ada9689..fb7e911 100644
--- a/contrib/sendmail/libsm/clock.c
+++ b/contrib/sendmail/libsm/clock.c
@@ -12,7 +12,7 @@
*/
#include <sm/gen.h>
-SM_RCSID("@(#)$Id: clock.c,v 1.35 2002/03/22 18:34:38 gshapiro Exp $")
+SM_RCSID("@(#)$Id: clock.c,v 1.35.2.1 2002/06/20 05:14:45 gshapiro Exp $")
#include <unistd.h>
#include <time.h>
#include <errno.h>
@@ -257,9 +257,6 @@ sm_clear_events()
#endif /* SM_CONF_SETITIMER */
int wasblocked;
- if (SmEventQueue == NULL)
- return;
-
/* nothing will be left in event queue, no need for an alarm */
#if SM_CONF_SETITIMER
clr.it_interval.tv_sec = 0;
@@ -270,6 +267,10 @@ sm_clear_events()
#else /* SM_CONF_SETITIMER */
(void) alarm(0);
#endif /* SM_CONF_SETITIMER */
+
+ if (SmEventQueue == NULL)
+ return;
+
wasblocked = sm_blocksignal(SIGALRM);
/* find the end of the EventQueue */
OpenPOWER on IntegriCloud