Re: Why do processes go Zombie?

From: Mike A. Harris (mharris@meteng.on.ca)
Date: Mon Jul 24 2000 - 06:30:55 EST


On Mon, 24 Jul 2000, Martin Frey wrote:

>Date: Mon, 24 Jul 2000 12:18:34 +0200
>From: Martin Frey <frey@scs.ch>
>To: Mike A. Harris <mharris@meteng.on.ca>
>Cc: Matthew Dharm <mdharm-kernel@one-eyed-alien.net>,
> Kernel Developer List <linux-kernel@vger.rutgers.edu>
>Subject: Re: Why do processes go Zombie?
>
>"Mike A. Harris" wrote:
>>
>> On Sun, 23 Jul 2000, Matthew Dharm wrote:
>> >So what causes this, and what can I do to avoid my threads from being stuck
>> >in the 'Z' state?
>>
>> The parent process MUST accept the return code from children
>> processes. If not, then the child stays in zombie state awaiting
>> someone to receive the return code.
>>
>> Perhaps oversimplified, but you get the point...
>>
>Which is the parten process of a kernel thread created on
>insmod of a module? The insmod process? If yes, insmod
>is not existing, so you will not catch the exit value.
>You need to attach the kernel thread to the init process.

Yes, an orphaned process...

-- 
Mike A. Harris                                     Linux advocate     
Computer Consultant                                  GNU advocate  
Capslock Consulting                          Open Source advocate

... Our continuing mission: To seek out knowledge of C, to explore strange UNIX commands, and to boldly code where no one has man page 4.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:16 EST