aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-10-12 14:17:48 +0100
committerRenato Golin <renato.golin@linaro.org>2016-10-12 14:17:48 +0100
commit567f6807fd5204a1008147ba4def2e0df657eef3 (patch)
tree60486dc6788e8d9ca798aa254f5ed16a46454528
parentdd4fee9e895c17d997e9bd80fba89540e88fa73e (diff)
downloadlinaro-scripts-567f6807fd5204a1008147ba4def2e0df657eef3.tar.gz
[cron] ignore your own pid
Change-Id: I9141dab09dab959d1706a09e7aa32d258f9bd65c
-rwxr-xr-xhelpers/llvm-cron-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/llvm-cron-build b/helpers/llvm-cron-build
index 133dc60..a0af680 100755
--- a/helpers/llvm-cron-build
+++ b/helpers/llvm-cron-build
@@ -32,7 +32,7 @@ if [ "$1" = "" ]; then
fi
# Make sure we're not already running
-if ps awwux | grep -v grep | grep "$BIN" > /dev/null; then
+if ps awwux | grep -v grep | grep -v $$ | grep "$BIN" > /dev/null; then
echo "Already running, won't flog" > "$err"
exit 1
fi