cronie/cronie-nofork-nopid.patch

14 lines
368 B
Diff
Raw Normal View History

Index: src/misc.c
===================================================================
--- src/misc.c.orig
+++ src/misc.c
@@ -311,6 +311,8 @@ 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. */