Re: How to avoid zombie kernel threads?

From: Evgeniy Polyakov (johnpol@2ka.mipt.ru)
Date: Tue Jan 29 2002 - 23:34:06 EST


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/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:13 EST