File vixie-cron-4.1-load_database.patch of Package cron
Index: vixie-cron-4.1/cron.c
===================================================================
--- vixie-cron-4.1.orig/cron.c
+++ vixie-cron-4.1/cron.c
@@ -156,6 +156,8 @@ main(int argc, char *argv[]) {
} while (clockTime == timeRunning);
timeRunning = clockTime;
+ load_database(&database);
+
/*
* Calculate how the current time differs from our virtual
* clock. Classify the change into one of 4 cases.
@@ -261,7 +263,6 @@ main(int argc, char *argv[]) {
got_sigchld = 0;
sigchld_reaper();
}
- load_database(&database);
}
}