From fe1177dcded2e1730a870dcb36c2987e5a663e95 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 25 Oct 2015 21:30:12 +0000 Subject: 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@ --- usr.sbin/cron/atrun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin/cron/atrun.c') 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 @@ -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(). -- cgit v1.2.3