Re: RFH: stale (f)lock in /proc/locks - process no longer exists

2015-10-14 Thread Philipp Hahn
To answer my own question: Am 14.10.2015 um 10:30 schrieb Philipp Hahn: > I have several shell scripts using "/usr/bin/flock -x > /run/lock/jenkins-ip.lock" to acquiring the exclusive lock. Today they > hang, while the lock is owned by a process which no longer exists: ... > 1. How can this happen

RFH: stale (f)lock in /proc/locks - process no longer exists

2015-10-14 Thread Philipp Hahn
Hi, I have several shell scripts using "/usr/bin/flock -x /run/lock/jenkins-ip.lock" to acquiring the exclusive lock. Today they hang, while the lock is owned by a process which no longer exists: # ls -i /run/lock/jenkins-ip.lock 766711440 /run/lock/jenkins-ip.lock # grep 766711440 /proc/locks 1