summaryrefslogtreecommitdiff
path: root/source/a/dcron/dcron.update.during.long.running.jobs.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/dcron/dcron.update.during.long.running.jobs.diff')
-rw-r--r--source/a/dcron/dcron.update.during.long.running.jobs.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/a/dcron/dcron.update.during.long.running.jobs.diff b/source/a/dcron/dcron.update.during.long.running.jobs.diff
new file mode 100644
index 00000000..cd1297c7
--- /dev/null
+++ b/source/a/dcron/dcron.update.during.long.running.jobs.diff
@@ -0,0 +1,19 @@
+ Update main.c
+
+Removed bug where cron.update is not picked up while jobs are still running. (We have long running cronjobs and experienced long overdue cron.update files)
+
+diff --git a/main.c b/main.c
+index 595f07a..0eba280 100644
+--- a/main.c
++++ b/main.c
+@@ -338,7 +338,8 @@ main(int ac, char **av)
+ SynchronizeDir(SCDir, "root", 0);
+ ReadTimestamps(NULL);
+ }
+- } else {
++ }
++ if (rescan < 60) {
+ CheckUpdates(CDir, NULL, t1, t2);
+ CheckUpdates(SCDir, "root", t1, t2);
+ }
+