forked from rpms/cronie
27 lines
773 B
Diff
27 lines
773 B
Diff
From 0570c2cd979bc9ce1da6a873089e89dbca900a1f Mon Sep 17 00:00:00 2001
|
|
From: Tomas Mraz <tmraz@fedoraproject.org>
|
|
Date: Tue, 7 May 2019 14:45:53 +0200
|
|
Subject: [PATCH] Revert "Avoid creating pid files when crond doesn't fork"
|
|
|
|
This reverts commit 5b285b46b88dc63689c6a56542cb2ba81f861b66.
|
|
The PID file is useful to avoid running multiple crond instances
|
|
at once.
|
|
---
|
|
src/misc.c | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/src/misc.c b/src/misc.c
|
|
index 42153b8..faf6ffb 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. */
|