Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-03-05 Thread Stas Bekman
Geoffrey Young wrote: $ENV{APACHE_TEST_STARTUP_TIMEOUT} now supersedes -startup_timeout [...] What's the reason for this change? it was a follow up from something on modperl@ I almost always expect that command line arguments supercede env variables.. i.e. $> CVSROOT=foo cvs -d bar co foo Bad C

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-03-05 Thread Geoffrey Young
>> $ENV{APACHE_TEST_STARTUP_TIMEOUT} now supersedes -startup_timeout >>[...] > > > What's the reason for this change? it was a follow up from something on modperl@ > I almost always expect that command > line arguments supercede env variables.. i.e. > > $> CVSROOT=foo cvs -d bar co foo > Ba

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-03-05 Thread Stas Bekman
Philippe M. Chiasson wrote: On Thu, 2004-03-04 at 22:21 +, [EMAIL PROTECTED] wrote: geoff 2004/03/04 14:21:27 Modified:perl-framework/Apache-Test Changes perl-framework/Apache-Test/lib/Apache TestServer.pm Log: $ENV{APACHE_TEST_STARTUP_TIMEOUT} now supersedes -startup

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-03-05 Thread Philippe M. Chiasson
On Thu, 2004-03-04 at 22:21 +, [EMAIL PROTECTED] wrote: > geoff 2004/03/04 14:21:27 > > Modified:perl-framework/Apache-Test Changes >perl-framework/Apache-Test/lib/Apache TestServer.pm > Log: > $ENV{APACHE_TEST_STARTUP_TIMEOUT} now supersedes -startup_timeout >

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-02-24 Thread Stas Bekman
Geoffrey Young wrote: sub config_defines { +my $self = shift; + my @defines = (); for my $item (qw(useithreads)) { @@ -88,7 +90,9 @@ push @defines, "-DPERL_\U$item"; } -push @defines, map { "-D$_" } split " ", shift->{config}->{vars}->{defines}; +

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2004-02-24 Thread Geoffrey Young
>sub config_defines { > +my $self = shift; > + >my @defines = (); > >for my $item (qw(useithreads)) { > @@ -88,7 +90,9 @@ >push @defines, "-DPERL_\U$item"; >} > > -push @defines, map { "-D$_" } split " ", > shift->{config}->{vars}->{

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-04-07 Thread Stas Bekman
Doug MacEachern wrote: it is a nice feature when it works, so i've re-enabled for linux only. for the other platforms in the current state, its better to wait 60 seconds if the server fails to start than to throw and error and die when it has successfully started. that's a nice alternative :) Hop

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-04-07 Thread Doug MacEachern
it is a nice feature when it works, so i've re-enabled for linux only. for the other platforms in the current state, its better to wait 60 seconds if the server fails to start than to throw and error and die when it has successfully started.

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-04-07 Thread Stas Bekman
[EMAIL PROTECTED] wrote: dougm 02/04/06 18:14:40 Modified:perl-framework/Apache-Test/lib/Apache TestServer.pm Log: this $SIG{CHLD} / $? status checking stuff does not work well on solaris or hpux. more often than not get: waiting for server to start: 00:02 server has die

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Doug MacEachern
On Mon, 7 Jan 2002, Stas Bekman wrote: > better move it to the top, in case it needs to be used earlier. not sure what you mean by earlier? i don't see any problems with the way it is, $parent_pid will be set before any of the subroutines are called.

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Stas Bekman
Doug MacEachern wrote: On Mon, 7 Jan 2002, Stas Bekman wrote: I needed it TestRun, whereas the fork was happening in TestServer. So it was definitely easier to do it locally. are you saying the following patch would not work? +1 better move it to the top, in case it needs to be used earlier. _

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Doug MacEachern
On Mon, 7 Jan 2002, Stas Bekman wrote: > I needed it TestRun, whereas the fork was happening in TestServer. So it > was definitely easier to do it locally. are you saying the following patch would not work? Index: Apache-Test/lib/Apache/TestRun.pm ==

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Stas Bekman
Doug MacEachern wrote: On Sun, 6 Jan 2002, Stas Bekman wrote: I've done with this: -eval 'END { +eval 'my $parent_pid = $$; + END { + return unless $$ == $parent_pid; # because of fork ok. i thought is_parent() could be useful elsewhere, but i guess we could worry a

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Doug MacEachern
On Sun, 6 Jan 2002, Stas Bekman wrote: > I've done with this: > > > -eval 'END { > +eval 'my $parent_pid = $$; > + END { > + return unless $$ == $parent_pid; # because of fork ok. i thought is_parent() could be useful elsewhere, but i guess we could worry about th

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Stas Bekman
Doug MacEachern wrote: On Fri, 4 Jan 2002, Stas Bekman wrote: Any idea how to disable the END blocks inheritance in the forked child? my $Pid = $$; sub is_parent { $$ == $Pid; } my $pid = fork; exit unless $pid; END { print "END pid=$$\n"; return unless is_parent(); print "stuf

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-06 Thread Doug MacEachern
On Fri, 4 Jan 2002, Stas Bekman wrote: > Any idea how to disable the END blocks inheritance in the forked child? my $Pid = $$; sub is_parent { $$ == $Pid; } my $pid = fork; exit unless $pid; END { print "END pid=$$\n"; return unless is_parent(); print "stuff\n"; } prints: E

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2002-01-04 Thread Stas Bekman
[EMAIL PROTECTED] wrote: stas02/01/03 20:48:58 Modified:perl-framework/Apache-Test/lib/Apache TestServer.pm Log: - use explicit fork for spawning httpd, now works with 1.3 and 2.0 Revision ChangesPath 1.48 +10 -1 httpd-test/perl-framework/Apache-Test/lib/Apach

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2001-11-01 Thread Doug MacEachern
On Sun, 21 Oct 2001, Stas Bekman wrote: > [EMAIL PROTECTED] wrote: > > > dougm 01/10/20 11:01:32 > > > > Modified:perl-framework/Apache-Test/lib/Apache TestServer.pm > > Log: > > make sure only 1 process is started for win32; else Kill will only > > shutdown the parent > > > d

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2001-10-21 Thread Stas Bekman
[EMAIL PROTECTED] wrote: dougm 01/10/20 11:01:32 Modified:perl-framework/Apache-Test/lib/Apache TestServer.pm Log: make sure only 1 process is started for win32; else Kill will only shutdown the parent doesn't it contradict with being able to override maxclients? So if a certain