-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this possible racing condition? #73
Comments
What is the cronie version on the system? There were some other possible races solved before. |
hytgbn
added a commit
to hytgbn/cronie
that referenced
this issue
Dec 24, 2020
Issue: cronie-crond#73 This CR is to fix race condition between file update and load_database when INOTIFY is enabled. Previously, if crontab file is simultaneously written when crond starts up, there is chances to miss the notification. This is because load_database was performed before inotify watches get registered. This CR will invoke `load_database` after watches are registered, so crond doesn't miss such updates.
t8m
pushed a commit
that referenced
this issue
Jan 4, 2021
Issue: #73 This CR is to fix race condition between file update and load_database when INOTIFY is enabled. Previously, if crontab file is simultaneously written when crond starts up, there is chances to miss the notification. This is because load_database was performed before inotify watches get registered. This CR will invoke `load_database` after watches are registered, so crond doesn't miss such updates.
Fixed with the PR #74 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently found one of my host doesn't run specific cronjob file. The cronjob file is written when the host gets launched. (As part of UserData of AWS EC2 instance).
host: Amazon linux 4.14 assuming this supports inotify
Wondering if this race condition is ever possible:
If this is ever possible, would it make sense to do load_database after adds watch?
The text was updated successfully, but these errors were encountered: