Re: How to avoid zombie kernel threads?

John Levon (movement@marcelothewonderpenguin.com)
Wed, 30 Jan 2002 04:34:03 +0000


On Wed, Jan 30, 2002 at 06:06:50AM +0200, Jarno Paananen wrote:

> http://hardsid.sourceforge.net/ is someone is actually interested)
> that uses a kernel thread to do the actual work asynchronously from
> rest of the world. The thread is created when opening a character
> device and exits when the device is closed.

read frey's guide and look at some real code to see how to do this.

Think you are missing a reparent_to_init(). I don't know if bleeding
2.5 includes this in daemonize() yet.

You should really have asked this on kernelnewbies mailing list btw

http://www.kernelnewbies.org/

regards
john

-- 
"In no sense is [in]stability a reason to move to a new version. It's never a
reason."
	- Bill Gates
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/