do a long wait if the lighttpd isn't starting up fast enough

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@647 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2 lighttpd-1.4.2
Jan Kneschke 2005-08-29 14:12:31 +00:00
parent 15dc40cd36
commit b14d500a9e
1 changed files with 4 additions and 4 deletions

View File

@ -84,14 +84,14 @@ sub start_proc {
unlink($self->{LIGHTTPD_PIDFILE});
if (1) {
system($self->{LIGHTTPD_PATH}." -f ".$self->{TESTDIR}."/tmp/cfg.file -m ".$self->{BASEDIR}."/src/.libs");
select(undef, undef, undef, 0.1);
} else {
system("valgrind --tool=memcheck --show-reachable=yes --leak-check=yes --logfile=foo ".$self->{LIGHTTPD_PATH}." -D -f ".$self->{TESTDIR}."/tmp/cfg.file -m ".$self->{BASEDIR}."/src/.libs &");
select(undef, undef, undef, 2);
}
# sleep(1);
select(undef, undef, undef, 0.1);
if (not -e $self->{LIGHTTPD_PIDFILE} or 0 == kill 0, `cat $self->{LIGHTTPD_PIDFILE}`) {
select(undef, undef, undef, 2);
}
unlink($self->{TESTDIR}."/tmp/cfg.file");