filelock
filelock copied to clipboard
Timeout policy
Not so much a filelock issue, although we could document it here. I really like how the new apt package manager handles this:
apt(8) now waits for the dpkg locks - indefinitely, when connected to a tty, or for 120s otherwise.
When apt cannot acquire the lock, it prints the name and pid of the process that currently holds the lock.