[BusyBox 0000421]: httpd applet in non-inet mode creates zombies

bugs at busybox.net bugs at busybox.net
Mon Sep 19 10:49:03 UTC 2005


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=421 
====================================================================== 
Reported By:                jamwyatt
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   421
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-08-2005 08:23 PDT
Last Modified:              09-19-2005 03:49 PDT
====================================================================== 
Summary:                    httpd applet in non-inet mode creates zombies
Description: 
httpd main loop, when not in debug mode forks off children and never reaps
their returns codes. I've got a local fix working and have provided an
example diff.

The solution that I've used was to change the select in the loop to have a
2 second timeout and then add a general waitpid without hang at the end to
scan for any children to reap. This isn't the most efficient, as waitpid
is run every two seconds or after every incomming request ... not nice
behavior if you are handling 1000's of connections, but I suspect most
busybox use is not in that category.

Robert
====================================================================== 

---------------------------------------------------------------------- 
 vodz - 09-19-05 03:49  
---------------------------------------------------------------------- 
I destroy this bug from revision 11501 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-08-05 08:23  jamwyatt       New Issue                                    
09-08-05 08:23  jamwyatt       Status                   new => assigned     
09-08-05 08:23  jamwyatt       Assigned To               => BusyBox         
09-19-05 03:49  vodz           Note Added: 0000549                          
======================================================================




More information about the busybox-cvs mailing list