To avoid them, set the signal handler for SIGCHLD to SIG_IGN, in the
parent.
signal(SIGCHLD, SIG_IGN)
if your child(s) creates any children, make sure that you set their
handler back to the default
signal(SIGCHLD, SIG_DFL)
Stuart Hughes,
Zentropix.
Erwin Rol wrote:
>
> Zombies are only there to give the parent proccess to possibility
> to get the childs processes exit code. As long as the parent process
> doesn't
> ask for (or requests to ignore it) the exit code the kernel keeps it in
> the
> form of a zombie. IT is only a entry in the process table , the actual
> process
> is gone including all resources it used.
>
> Only problem might be when you have so much zombies that yer process
> table is full.
>
> It might be a programming error somewhere in yer program that doesn't
> handle dying
> children correctly. take a look at the fork and wait man pages.
>
> - Erwin
>
> Bernd Stahlbock wrote:
> >
> > Hello there,
> >
> > in my application, a user tread is starting another thread with
> > clone(). This thread is interacting with the rt-kernel thread.
> > when the new thread exits, is stays in memory as zombie, after a time
> > I've got a lot of zombies around. Are they decreasing the performance
> > of the whole RT-application? Can the system run out of memory by too
> > much zombies?
> >
> > What is the reason for the zombies at all? I have a long running
> > master process and from time to time I start a thread with clone().
> > Every thread, (which I close with exit()) stays as a zombie unless the
> > master process is killed.
> >
> > Bernd
> >
> > --
> > [EMAIL PROTECTED], http://www.basysprint.de
> > basysPrint GmbH, Guelzer Str. 15, 19258 Boizenburg, Germany
> > Tel.: ++49-38847-99-163, Fax:++49-38847-99-192
> >
> > --- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> > ----
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/~rtlinux/
>
> --
> Q - S O F T - E N G I N E E R I N G
> Rodachtalweg 11, 81549 Muenchen, Germany
>
> Erwin Rol (Software Engineer) phone: +49-89-68050051
> [EMAIL PROTECTED] fax : +49-89-68050052
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/