Yes. There's a function in the 2.4 series called reparent_to_init()
whch does this. Typically a kernel thread will call that immediately
after calling daemonize(). It _should_ solve any problem which you're
observing. Could you please test that, and if it fixes the problem
which you're seeing, send a patch to the USB maintainers?
Perhaps we should unconditionally call reparent_to_init() from within
daemonize(). I wimped out on doing that because of the possibility
of strangely breaking something.
Really, an audit of all callers of kernel_thread() is needed, and
most of them should would end up using reparent_to_init(). Difficult
to do in the 2.4 context, so we should only do this when and where
problems are demonstrated.
(But you Cc'ed Alan. Are you using 2.2.x?)
-
-
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/