Re: Why do processes go Zombie?

From: Matthew Dharm (mdharm-kernel@one-eyed-alien.net)
Date: Mon Jul 24 2000 - 13:41:34 EST


After looking at this web page (and reading other threads), I'm still
stuck.

My driver makes the call to daemonize(), which drops all resources and sets
our parent process to be init, but I still see zombie threads left over.

Does anyone else have any ideas what might be going wrong? My source code
is in drivers/usb/storage/usb.c

Matt

On Sun, Jul 23, 2000 at 10:01:44PM -0400, Martin Frey wrote:
> Matthew Dharm wrote:
>
> > When that happens, the thread often successfully exits and terminates.
> > However, sometimes one or more of the control threads winds up in the 'Z'
> > state.
>
> Maybe you should just "daemonize" your kernel threads. I put
> an example to http://www.scs.ch/~frey/linux/kernelthreads.html
> With all the setup I do in the example there, I can load/unload
> a module with launching a thread on load over night without
> getting a zombie.
> However, I just tested that on 2.2.14, Intel and Alpha platform.
>
> Best regards,
>
> Martin Frey
> --
> Supercomputing System AG email: frey@scs.ch
> Martin Frey web: http://www.scs.ch/~frey/
> Technoparkstrasse 1 phone: +41 (0) 1 445 16 00
> CH-8005 Zurich fax: +41 (0) 1 445 16 10

-- 
Matthew Dharm                              Home: mdharm@one-eyed-alien.net 
Senior Engineer, QCP Inc.                            Work: mdharm@qcpi.com

C: They kicked your ass, didn't they? S: They were cheating! -- The Chief and Stef User Friendly, 11/19/1997

- 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:17 EST