Commit 8c726579 by Jason Merrill

* lock-and-run.sh: Tweak command order.

From-SVN: r277279
parent 678a1e99
...@@ -12,8 +12,9 @@ count=0 ...@@ -12,8 +12,9 @@ count=0
err () { err () {
if test -f $lockdir/lock-$1.$$; then if test -f $lockdir/lock-$1.$$; then
echo "$self: *** (PID $$) removing stale $lockdir" >&2
rm -rf $lockdir rm -rf $lockdir
echo "$self: *** (PID $$) removed stale $lockdir" >&2
# Possible variant for uses where races are more problematic: # Possible variant for uses where races are more problematic:
#echo "$self: *** (PID $$) giving up, maybe rm -r $lockdir" >&2 #echo "$self: *** (PID $$) giving up, maybe rm -r $lockdir" >&2
#exit 42 #exit 42
......
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