[BusyBox 0000421]: httpd applet in non-inet mode creates zombies
bugs at busybox.net
bugs at busybox.net
Thu Sep 8 15:23:23 UTC 2005
The following issue has been SUBMITTED.
======================================================================
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-08-2005 08:23 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
======================================================================
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
======================================================================
More information about the busybox-cvs
mailing list