Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Leftover kdvb-fe processes
Oliver Endriss écrit:
>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.
>
..., unless the kernel thread is reparent'ed to init, which will care
about terminated threads. This is not done automatically by daemonize(),
but may be done by the function reparent_to_init(void) (exists in kernel
versions 2.4 and above), to be called just after daemonize(). This
subject has already been discussed elsewhere, see :
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0201.2/index.html#1815
/Régis
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index