]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: avoid seeing cron's sh -c in ps check
authorRuss Cox <rsc@golang.org>
Mon, 1 Feb 2010 19:36:44 +0000 (11:36 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 1 Feb 2010 19:36:44 +0000 (11:36 -0800)
R=agl1
CC=golang-dev
https://golang.org/cl/196091

misc/dashboard/buildcron.sh

index c344414a972040fd6c6484ac871d4a4588522541..42a12b2e79766ff8dcaaa451dbe23d0963cf3cce 100644 (file)
@@ -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