summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/cron.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/cron/cron.c')
-rw-r--r--usr.sbin/cron/cron.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c
index 3772b4574a4..a2ce0eba63a 100644
--- a/usr.sbin/cron/cron.c
+++ b/usr.sbin/cron/cron.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cron.c,v 1.14 2001/07/13 03:28:48 millert Exp $ */
+/* $OpenBSD: cron.c,v 1.15 2001/08/11 20:47:14 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
*/
@@ -21,7 +21,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$OpenBSD: cron.c,v 1.14 2001/07/13 03:28:48 millert Exp $";
+static char rcsid[] = "$OpenBSD: cron.c,v 1.15 2001/08/11 20:47:14 millert Exp $";
#endif
#define MAIN_PROGRAM
@@ -368,6 +368,8 @@ sigchld_reaper() {
pid = waitpid(-1, &waiter, WNOHANG);
switch (pid) {
case -1:
+ if (errno == EINTR)
+ continue;
Debug(DPROC,
("[%ld] sigchld...no children\n",
(long)getpid()))