We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc41077 commit 3a55950Copy full SHA for 3a55950
ccache-cleanlock.sh
@@ -22,8 +22,9 @@ TZ=UTC
22
export TZ LANG LC_ALL
23
24
# How long can a decent compilation of one file take? Even on a truck worker?
25
-# Complain (exit 42) in listing if we see lock files older than this (sec):
26
-TOO_OLD=120
+# Complain (exit 42) in listing if we see lock files older than this (sec).
+# Also do not remove lock files younger than this, only report them if seen.
27
+[ -n "$TOO_OLD" ] && [ "$TOO_OLD" -ge 0 ] || TOO_OLD=120
28
29
# Hint: for a massive cleanup, can set CLEANHOST=. or another regex to match
30
# In worst cases, try: find . -name 'stats.lock*' -type l -exec rm -f '{}' \;
0 commit comments