Re: is killing zombies possible w/o a reboot?

From: Måns Rullgård
Date: Wed Nov 03 2004 - 14:08:05 EST


Gene Heskett <gene.heskett@xxxxxxxxxxx> writes:

> On Wednesday 03 November 2004 12:44, DervishD wrote:
>> Hi Gene :)
>>
>> * Gene Heskett <gene.heskett@xxxxxxxxxxx> dixit:
>>> > Or write a little program that just 'wait()'s for the
>>> > specified PID's. That is perfectly portable IMHO. But I must
>>> > admit that the preferred way should be killing the parent.
>>> > 'init' will reap the children after that.
>>>
>>> But what if there is no parent, since the system has already
>>> disposed of it?
>>
>> Then the children are reparented to 'init' and 'init' gets rid
>> of them. That's the way UNIX behaves.
>
> Unforch, I've *never* had it work that way. Any dead process I've
> ever had while running linux has only been disposable by a reboot.

That's because its parent was still sitting around refusing to wait()
for them.

--
Måns Rullgård
mru@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/