On Wed, Sep 03, 2008, kr Lekha wrote: > I understand when thread finishes it should call kthread_exit(). > but if this thread was suspended before it finished, it might not be able to > call kthread_exit(). > > Due to which we still see the thread suspended. I am unable to kill it > even with killproc / psignal with in the kernel module.
That's by design. Kernel threads can hold arbitrary kernel resources, and there's no mechanism to clean up after them automatically. They are expected to clean up after themselves and exit gracefully. In your case, you'll need to wake up the suspended thread and somehow notify it that you want it to terminate. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

