diff options
-rw-r--r-- | miscutils/crond.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index a459c6a8c..66110bb85 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -304,13 +304,15 @@ static void FixDayDow(CronLine *line) | |||
304 | //if crontab was reloaded: crond thinks that "new" job is different from "old" | 304 | //if crontab was reloaded: crond thinks that "new" job is different from "old" |
305 | //even if they are in fact completely the same. Example | 305 | //even if they are in fact completely the same. Example |
306 | //Crontab was: | 306 | //Crontab was: |
307 | // 0-59 * * * job1 | 307 | // 0-59 * * * * job1 |
308 | // 0-59 * * * long_running_job2 | 308 | // 0-59 * * * * long_running_job2 |
309 | //User edits crontab to: | 309 | //User edits crontab to: |
310 | // 0-59 * * * job1_updated | 310 | // 0-59 * * * * job1_updated |
311 | // 0-59 * * * long_running_job2 | 311 | // 0-59 * * * * long_running_job2 |
312 | //Bug: crond can now start another long_running_job2 even if old one | 312 | //Bug: crond can now start another long_running_job2 even if old one |
313 | //is still running. | 313 | //is still running. |
314 | //OTOH most other versions of cron do not wait for job termination anyway, | ||
315 | //they end up with multiple copies of jobs if they don't terminate soon enough. | ||
314 | static void delete_cronfile(const char *userName) | 316 | static void delete_cronfile(const char *userName) |
315 | { | 317 | { |
316 | CronFile **pfile = &G.cron_files; | 318 | CronFile **pfile = &G.cron_files; |