httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Wright <m...@consultmatt.co.uk>
Subject Re: [users@httpd] Apache children not dying
Date Tue, 04 Nov 2003 21:23:47 GMT
Hi,

I've tested the program and it does respond to SIGPIPE and dies
appropriately. I also altered the script to use passthru instead of
popen and fpassthru and the symptoms still persist.

Matt

On Tue, 2003-11-04 at 20:41, Brian Dessent wrote:
> Matt Wright wrote:
> > 
> > Hi,
> > 
> > I already checked this, ignore_user_abort is set to off in php.ini. So
> > php would stop if apache asked it to. Well as far as I can see. I don't
> > see any point in setting ignore_user_abort to true as the php script
> > itself won't end on its own as its a streamer.
> 
> You also mentioned that the script popen()s a process, right?  You
> should check that this process (or chain of processes) exits on a broken
> pipe.  You might be able to test this locally with netcat or something. 
> It could be that PHP does sense that the user has aborted and tries to
> terminate and close the open pipe.  But if this process doesn't respond
> to SIGPIPE or the broken pipe or whatever PHP is sending then the
> process will hang around forever or until it decides to exit on its
> own.  Maybe you should try proc_open() or passthru() instead of popen()?
> 
> Brian
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message