We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3012444 commit bc41077Copy full SHA for bc41077
ccache-cleanlock.sh
@@ -11,7 +11,7 @@
11
# a check that they are not referenced by a still-running process, if executed
12
# from the builder host.
13
#
14
-# (C) 2015-2020 by Jim Klimov
+# (C) 2015-2021 by Jim Klimov
15
16
17
set -o pipefail
@@ -25,6 +25,8 @@ export TZ LANG LC_ALL
25
# Complain (exit 42) in listing if we see lock files older than this (sec):
26
TOO_OLD=120
27
28
+# Hint: for a massive cleanup, can set CLEANHOST=. or another regex to match
29
+# In worst cases, try: find . -name 'stats.lock*' -type l -exec rm -f '{}' \;
30
[ -n "${CHECKPROC-}" ] || CHECKPROC=true
31
[ -n "${CLEANHOST-}" ] && CHECKPROC=false && { if [ "${CLEANHOST}" = "`hostname`" ] ; then CHECKPROC=true ; fi; } || CLEANHOST="`hostname`"
32
0 commit comments