[Bug 375] httpd does not reap zombies

bugzilla at busybox.net bugzilla at busybox.net
Thu Jul 16 14:39:42 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=375





--- Comment #8 from Shmulik Hen <shmulik.h at adi-vt.com>  2009-07-16 14:39:42 UTC ---
(In reply to comment #7)
> Can you send the RPM to vda.linux at googlemail.com?

Sent.

> httpd uses the same method for all CGIs.

OK

> I think all CGIs should just dump result to stdout and exit, regardless of the
> language they use (C, shell, PHP etc). No special handling of exit signal is
> needed.

Great - this is exactly what my program does :-)

> Can you produce a strace log and show "ps -AH" output fragment which shows
> zombies being created?

2 problems here:
1) busybox on my unit does not support strace - I'll need to rebuild
2) busybox's ps command does not support AH options

I have the output from 'ps -w' - this is after refreshing the web browser 4
times:

  PID  Uid        VSZ Stat Command
    1 root       2568 S   init       
    2 root            SW< [kthreadd]
    3 root            SW< [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
   31 root            SW< [kblockd/0]
   36 root            SW< [kseriod]
   98 root            SW  [pdflush]
   99 root            SW  [pdflush]
  100 root            SW< [kswapd0]
  101 root            SW< [aio/0]
  181 root            SW< [mtdblockd]
  182 root            SW< [ftld]
  214 root            SW< [rpciod/0]
  216 root       2568 S   init       
  217 root       2572 S   /bin/sh /etc/init.d/rcSBB 
  270 root       2568 S   /sbin/klogd 
  275 root       2568 S   /sbin/syslogd 
  280 root       4068 S   /usr/sbin/sshd 
  307 root       2568 S   /usr/sbin/telnetd -f /etc/issue.net 
  332 root       2568 S   /usr/sbin/httpd -h /home/httpd/html -c
/etc/httpd.conf 
  415 root            SWN [jffs2_gcd_mtd1]
  433 root            Z   [tar]
  495 root            SW< [EMBXSHM-NewPort]
  496 root            SW< [EMBXSHM-PortClo]
  497 root            SW< [EMBXSHM-NewPort]
  498 root            SW< [EMBXSHM-PortClo]
  501 root            SW< [STFDMA_ClbckMgr]
  749 root     179272 S   /usr/bin/irdapp 
  752 root            SW< [stpti4_IntTask]
  753 root            SW< [stpti4_EvtTask]
  754 root            SW< [STCLKRV_Recover]
  755 root            DW< [STVOUT_STATE_MA]
  756 root            SW< [STVOUT_INFOFRAM]
  757 root            SW< [kblit_interrupt]
  758 root            DW< [STLAYER-GFX/CUR]
  759 root            DW< [STLAYER-GFX/CUR]
  761 root            SW< [PESES0]
  762 root            SW< [DEC0]
  763 root            SW< [PP0]
  764 root            SW< [PP1]
  765 root            SW< [PCMPLAYER0]
  766 root            SW< [PCMPLAYER1]
  767 root            SW< [SPDIFPLAYER]
  768 root            SW< [STSUBT_FILTER_T]
  769 root            SW< [STSUBT_PROCESSO]
  770 root            SW< [STSUBT_ENGINE_T]
  771 root            SW< [STSUBT_TIMER_TA]
  798 root            Z   [xmlUtil]
  800 root            Z   [xmlUtil]
  806 root            Z   [xmlUtil]
  834 root            Z   [xmlUtil]
  835 root       2568 S   sh -c /bin/ps -w  
  836 root       2572 R   /bin/ps -w 

Besides, I noticed that you are running httpd with -f option that prevents it
from daemonizing - could this be the cause of the difference?


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list