diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-03-06 11:51:14 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-03-06 11:51:14 +0000 |
commit | 659503eb16de098d866a608c2fba7ec309f39195 (patch) | |
tree | 65f2aec3d458713f86528871191d86193bee024b /tests/mod-fastcgi.t | |
parent | 18d3e51e3e5d7046b94e690105443af4d69f6d62 (diff) | |
download | lighttpd-git-659503eb16de098d866a608c2fba7ec309f39195.tar.gz |
fixed check for running process
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@103 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-x | tests/mod-fastcgi.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t index ff794548..02fef66b 100755 --- a/tests/mod-fastcgi.t +++ b/tests/mod-fastcgi.t @@ -18,8 +18,8 @@ my $pidoffile = '/tmp/lighttpd/pidof.pid'; sub pidof { my $prog = $_[0]; - open F, "ps ax | grep $prog | awk '{ print \$1 }'|" or - open F, "ps -ef | grep $prog | awk '{ print \$2 }'|" or + open F, "ps ax | grep $prog | grep -v grep | awk '{ print \$1 }'|" or + open F, "ps -ef | grep $prog | grep -v grep | awk '{ print \$2 }'|" or return -1; my $pid = <F>; |