Re: Signal Uncaught

"Rob" <robs-0hTJTfHo8lbrZ44/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <DDF454EB622A4BBBB08DEA319C3348CB@maisel>
This should be posted to the lighttpd forum:
http://forum.lighttpd.net/forum/1/

> -----Original Message-----
> From: fastcgi-developers-bounces+robs=fastcgi.com-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> [mailto:fastcgi-developers-bounces+robs=fastcgi.com-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org]
> On Behalf Of Jie PAN
> Sent: Wednesday, October 15, 2008 10:46 PM
> To: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> Subject: [FASTCGI] Signal Uncaught
> 
> Hi all.
> 
> I tried to write some scirpts in php, and met a problem while using
> lighttpd with mod_fastcgi. Here's the code below:
> ---------------------------------------------------
> <?php
> declare(ticks = 1);
> 
> function sig_handler($signo)
> {
>              echo "Caught signal...\n";
> }
> 
> echo "Installing signal handler...\n";
> 
> pcntl_signal(SIGUSR1, "sig_handler", FALSE);
> 
> echo"Generating signal SIGTERM to self...\n";
> 
> echo posix_getpid();
> posix_kill(posix_getpid(), SIGUSR1);
> 
> echo "Done\n"
> 
> ?>
> ---------------------------------------------------
> The issue is, the signal could only be caught for the first time, and then
> always failed until lighttpd was restarted. If I switched mod_fastcgi to
> mod_cgi in lighttpd.conf, the signal could be caught everytime without
> problem. I'm using lighttpd 1.4.20 & php 5.2.6 with default configuration.
> 
> Thanks in advance.
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.