aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-01 11:36:44 -0800
committerRuss Cox <rsc@golang.org>2010-02-01 11:36:44 -0800
commit0141fd3b654c5cc432d69853636ab1505cd47920 (patch)
tree64070f83eb12ebf38ed82fd6b34010de7af14532
parent0d8797bf73977cb84042d59c9d76f3f58b4d7f46 (diff)
downloadgo-0141fd3b654c5cc432d69853636ab1505cd47920.tar.gz
go-0141fd3b654c5cc432d69853636ab1505cd47920.zip
dashboard: avoid seeing cron's sh -c in ps check
R=agl1 CC=golang-dev https://golang.org/cl/196091
-rw-r--r--misc/dashboard/buildcron.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/dashboard/buildcron.sh b/misc/dashboard/buildcron.sh
index c344414a97..42a12b2e79 100644
--- a/misc/dashboard/buildcron.sh
+++ b/misc/dashboard/buildcron.sh
@@ -21,8 +21,10 @@ export GOARCH=$2
# Check if we are already running.
# First command must not be pipeline, to avoid seeing extra processes in ps.
all=$(ps axwwu)
-pid=$(echo "$all" | grep "buildcron.sh $1 $2" | grep -v $$ | awk '{print $2}')
+pid=$(echo "$all" | grep "buildcron.sh $1 $2" | grep -v "sh -c" | grep -v $$ | awk '{print $2}')
if [ "$pid" != "" ]; then
+ #echo already running buildcron.sh $1 $2
+ #echo "$all" | grep "buildcron.sh $1 $2" | grep -v "sh -c" | grep -v $$
exit 0
fi