Re: Why do processes go Zombie?

From: Martin Frey (frey@scs.ch)
Date: Mon Jul 24 2000 - 05:18:34 EST


"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.

Best regards,

Martin Frey

-- 
Supercomputing Systems AG        email: frey@scs.ch	
Martin Frey                      www:   http://www.scs.ch/~frey
Technoparkstrasse 1		 phone: +41 (0)1 445 16 00
CH-8005 Zurich			 fax:	+41 (0)1 445 16 10

- 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