Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Leftover kdvb-fe processes
Régis Bossut wrote:
> Oliver Endriss wrote:
> >Note that there is always a zombie fe process when vdr is running.
> >Actually, a zombie process will be added each time the frontend is
> >closed. This is a normal since zombie processes will not be removed
> >until the parent process exits.
>
> I thought it was removed when the parent process acknowledges the
> process end via the wait() function.
Yes, but vdr does not wait() for the kernel thread...
It doesn't even know that a kernel thread has been created.
Therefore, the cleanup will be performed when vdr exits.
Is there an equivalent for wait() which can be used in kernel space?
> This can be changed by using sigaction(). If SA_NOCLDWAIT is set, and
> sig equals SIGCHLD, child processes of the calling processes will not
> be transformed into zombie processes when they terminate.
kernel 2.4.19, /usr/include/asm/signal.h:
#define SA_NOCLDWAIT 0x00000002 /* not supported yet */
^^^^^^^^^^^^^^^^^
:-)
Oliver
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index