4 ms·
Locking is non-trivial, don't just use flock. Use the maildir method and check for stale locks; it's atomic, portable, and NFS-safe. Using Ohmycron is better t
by throwaway984393 5y ago
Locking is non-trivial, don't just use flock. Use the maildir method and check for stale locks; it's atomic, portable, and NFS-safe.
Using Ohmycron is better than nothing, but it doesn't handle timeouts and stale locks and some other useful things. Seems like we still need a better universal wrapper for cron jobs.
- resizeitplz 5y ago> maildir method Guess I'm one of the lucky 10k today - but a search for information isn't turning up much. Could you expand on the maildir method a bit more?
- 0xbadcafebee 5y agohttps://manpages.ubuntu.com/manpages/xenial/man5/maildir.5.html https://manpages.ubuntu.com/manpages/xenial/man5/maildir.5.h... | https://manpages.ubuntu.com/manpages/xenial/man5/maildir.courier.5.html https://manpages.ubuntu.com/manpages/xenial/man5/maildir.cou... | https://gist.github.com/pwillis-els/b01b22f1b967a228c31db3cf2789ee13 https://gist.github.com/pwillis-els/b01b22f1b967a228c31db3cf...