File cronie-nofork-nopid.patch of Package cronie

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. */
openSUSE Build Service is sponsored by