Re: How to avoid zombie kernel threads?

Evgeniy Polyakov (johnpol@2ka.mipt.ru)
Wed, 30 Jan 2002 07:34:06 +0300


On 30 Jan 2002 06:06:50 +0200
Jarno Paananen <jpaana@s2.org> wrote:

> Hi,

Good time of day.

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

Maybe you should use do_exit() at the end or complete_and_exit()?

> [daemonize() etc.]
...
do_exit(0); // At least usb hub do it in such manner.
> return 0;

> Thanks,

I hope this will help you.

> // Jarno
> -

Evgeniy Polyakov ( s0mbre ).
-
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/