summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/atrun.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-10-25 21:30:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-10-25 21:30:12 +0000
commitfe1177dcded2e1730a870dcb36c2987e5a663e95 (patch)
tree96de423175b632c9ba2d027b36ea4aa393702e6e /usr.sbin/cron/atrun.c
parent8aaa0227cc75535b6c698f9ac012c808058b5f89 (diff)
Remove cron.pid support. We still want to avoid multiple crons
running so verify that if the cron socket exists nothing is listening on it. OK tedu@
Diffstat (limited to 'usr.sbin/cron/atrun.c')
-rw-r--r--usr.sbin/cron/atrun.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c
index d558e71de5b..1b427a6a489 100644
--- a/usr.sbin/cron/atrun.c
+++ b/usr.sbin/cron/atrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atrun.c,v 1.32 2015/10/23 18:42:55 tedu Exp $ */
+/* $OpenBSD: atrun.c,v 1.33 2015/10/25 21:30:11 millert Exp $ */
/*
* Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -248,8 +248,6 @@ run_job(atjob *job, char *atfile)
return;
}
- acquire_daemonlock(1); /* close lock fd */
-
/*
* We don't want the main cron daemon to wait for our children--
* we will do it ourselves via waitpid().