diff options
author | Russ Cox <rsc@golang.org> | 2010-02-01 11:36:44 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-01 11:36:44 -0800 |
commit | 3a921b260da55311177888d16310860ea0bb3d4d (patch) | |
tree | bc1bd6840e31095dff7a9875fc7d8ea0f3630a82 /misc | |
parent | 5ebbabf52eacfae58524dc04bd4f435d90cdc6b2 (diff) | |
download | go-3a921b260da55311177888d16310860ea0bb3d4d.tar.gz |
dashboard: avoid seeing cron's sh -c in ps check
R=agl1
CC=golang-dev
http://codereview.appspot.com/196091
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dashboard/buildcron.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/dashboard/buildcron.sh b/misc/dashboard/buildcron.sh index c344414a9..42a12b2e7 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 |