From 0141fd3b654c5cc432d69853636ab1505cd47920 Mon Sep 17 00:00:00 2001
From: Russ Cox <rsc@golang.org>
Date: Mon, 1 Feb 2010 11:36:44 -0800
Subject: [PATCH] dashboard: avoid seeing cron's sh -c in ps check

R=agl1
CC=golang-dev
https://golang.org/cl/196091
---
 misc/dashboard/buildcron.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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
 
-- 
2.30.9