On Tue, Feb 27, 2024 at 12:45 PM Joe Zeff <j...@zeff.us> wrote: > > On 02/27/2024 10:39 AM, Tim via users wrote: > > A program ought to be able to detect a stale lock file > > still remaining and handle it itself. > > And how do you suggest that it detects it?
I can think of 2 ways off the top of my head.... 1) put the lockfile in a memory-based file system like /tmp, /run, etc. This is probably the "correct" way. 2) compare when the system was booted against when the lock file was created. If boot time > lock file time, lock file is stale. -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue