31 lines
873 B
Diff
31 lines
873 B
Diff
From 04d556ba1f3c18508c51231fa12a6d8f0bddf36c Mon Sep 17 00:00:00 2001
|
|
From: root <root@localhost.localdomain>
|
|
Date: Tue, 23 Jul 2019 07:54:07 -0400
|
|
Subject: [PATCH] Revert "Avoid creating pid files when crond doesn't fork"
|
|
Reason: The PID file is useful to avoid running multiple crond instances
|
|
at once.
|
|
Source: https://github.com/cronie-crond/cronie/commit/0570c2cd979bc9ce1da6a873089e89dbca900a1f
|
|
|
|
Signed-off-by: root <root@localhost.localdomain>
|
|
---
|
|
src/misc.c | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/src/misc.c b/src/misc.c
|
|
index 4efab64..587c761 100644
|
|
--- a/src/misc.c
|
|
+++ b/src/misc.c
|
|
@@ -315,9 +315,6 @@ void acquire_daemonlock(int closeflag) {
|
|
return;
|
|
}
|
|
|
|
- if (NoFork == 1)
|
|
- return; //move along, nothing to do here...
|
|
-
|
|
if (fd == -1) {
|
|
pidfile = _PATH_CRON_PID;
|
|
/* Initial mode is 0600 to prevent flock() race/DoS. */
|
|
--
|
|
2.19.1
|
|
|