diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-13 13:54:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-13 13:54:53 +0000 |
commit | 6e84f254c1a52b8cfebed32713e0eea355d1dae3 (patch) | |
tree | bd410c65e90798cb2f58dccd4933ef8a828111c9 /usr.sbin | |
parent | 62c934a9a858c79b13db9a071edc696a4354cf21 (diff) |
If we get EAGAIN reading from the cron socket check both cron and
at databases for jobs to run. Jarno Huuskonen.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/cron.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index 22bc0318438..293f6d1b313 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.33 2004/05/03 15:10:21 millert Exp $ */ +/* $OpenBSD: cron.c,v 1.34 2004/05/13 13:54:52 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static const char rcsid[] = "$OpenBSD: cron.c,v 1.33 2004/05/03 15:10:21 millert Exp $"; +static const char rcsid[] = "$OpenBSD: cron.c,v 1.34 2004/05/13 13:54:52 millert Exp $"; #endif #define MAIN_PROGRAM @@ -393,7 +393,7 @@ cron_sleep(int target) { Debug(DSCH, ("[%ld] Target time=%ld, sec-to-wait=%ld\n", (long)getpid(), (long)target*SECONDS_PER_MINUTE, tv.tv_sec)) - poke = 0; + poke = RELOAD_CRON | RELOAD_AT; if (fdsr) FD_SET(cronSock, fdsr); /* Sleep until we time out, get a poke, or get a signal. */ |