Browse Source

fixed check for running process

git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@103 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/release-1.3.13
Jan Kneschke 17 years ago
parent
commit
659503eb16
  1. 4
      tests/mod-fastcgi.t
  2. 4
      tests/mod-rewrite.t

4
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>;

4
tests/mod-rewrite.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>;

Loading…
Cancel
Save