You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill Moseley <mo...@hank.org> on 2007/09/17 19:26:19 UTC
-X and trapping kill?
Must be Monday. Is there a problem with the -X switch and prefork?
I'm using:
Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2 Perl/v5.8.8
I have a very small config and when I run with -X it starts a single
process but I can't control-C to kill it. I can't even kill from
another xterm, I have to kill -9 it.
Tried also on Ubuntu, but it's the same versions as above.
--
Bill Moseley
moseley@hank.org
Re: -X and trapping kill?
Posted by bharanee rathna <de...@gmail.com>.
Hi guys, this is a known issue reported at
http://issues.apache.org/bugzilla/show_bug.cgi?id=38848
and not modperl related.
On 9/18/07, Fred Moyer <fr...@redhotpenguin.com> wrote:
>
> Bill Moseley wrote:
> > Must be Monday. Is there a problem with the -X switch and prefork?
> >
> > I'm using:
> >
> > Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2
> Perl/v5.8.8
> >
> >
> > I have a very small config and when I run with -X it starts a single
> > process but I can't control-C to kill it. I can't even kill from
> > another xterm, I have to kill -9 it.
> >
> > Tried also on Ubuntu, but it's the same versions as above.
>
> Just to rule out that it's not the terminal causing the problem, what
> happens if you run a program like this and ctrl+c? I'm not seeing the
> behavior you are describing with 2.2.4/2.0.3/5.8.8 on darwin.
>
> #!perl
>
> use strict;
> use warnings;
>
> $SIG{INT} = sub { warn('hello interrupt') };
>
> while (1) {
> next;
> }
>
Re: -X and trapping kill?
Posted by Fred Moyer <fr...@redhotpenguin.com>.
Bill Moseley wrote:
> Must be Monday. Is there a problem with the -X switch and prefork?
>
> I'm using:
>
> Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2 Perl/v5.8.8
>
>
> I have a very small config and when I run with -X it starts a single
> process but I can't control-C to kill it. I can't even kill from
> another xterm, I have to kill -9 it.
>
> Tried also on Ubuntu, but it's the same versions as above.
Just to rule out that it's not the terminal causing the problem, what
happens if you run a program like this and ctrl+c? I'm not seeing the
behavior you are describing with 2.2.4/2.0.3/5.8.8 on darwin.
#!perl
use strict;
use warnings;
$SIG{INT} = sub { warn('hello interrupt') };
while (1) {
next;
}
Re: -X and trapping kill?
Posted by bharanee rathna <de...@gmail.com>.
yes, but AFAIK -X is a shortcut for -DONE_PROCESS. But then I may be wrong
but a quick check now shows me that using -DONE_PROCESS, apache2 ignores
SIGINT
On 9/18/07, Philippe M. Chiasson <go...@ectoplasm.org> wrote:
>
> Bill Moseley wrote:
> > Must be Monday. Is there a problem with the -X switch and prefork?
> >
> > I'm using:
> >
> > Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2
> Perl/v5.8.8
>
> for Apache/2.x, Shouldn't that now be:
>
> $> httpd -DONE_PROCESS -DNO_DETACH
>
> ------------------------------------------------------------------------
> Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
> http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
>
>
>
Re: -X and trapping kill?
Posted by Fred Moyer <fr...@redhotpenguin.com>.
Philippe M. Chiasson wrote:
> Bill Moseley wrote:
>> Must be Monday. Is there a problem with the -X switch and prefork?
>>
>> I'm using:
>>
>> Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2 Perl/v5.8.8
>
> for Apache/2.x, Shouldn't that now be:
>
> $> httpd -DONE_PROCESS -DNO_DETACH
This is happening on my setup also, Apache 2.2.3, mod_perl 2.0.3, perl
5.8.8, using a standard xterm to send the interrupt.
Re: -X and trapping kill?
Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Bill Moseley wrote:
> Must be Monday. Is there a problem with the -X switch and prefork?
>
> I'm using:
>
> Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8e mod_perl/2.0.2 Perl/v5.8.8
for Apache/2.x, Shouldn't that now be:
$> httpd -DONE_PROCESS -DNO_DETACH
------------------------------------------------------------------------
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/