Commit 2f764996 by Eric Coissac

Patch for removing oldest semaphore first

parent f1fb64c0
......@@ -192,7 +192,7 @@ function releasesemaphore() {
name=$(lockfile "${name}.$(whoami).@*")
fi
toremove=$(ls $name 2> /dev/null | head -1)
toremove=$(ls -tr $name 2> /dev/null | head -1)
if [[ ! -z "$toremove" ]] ; then
rm -f "$toremove"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment