Re: Kernel threads...

Borislav Deianov (borislav@lix.polytechnique.fr)
Fri, 19 Nov 1999 15:28:35 +0100


In article <Pine.LNX.3.95a.991119120647.5465B-100000@asis-w6> you wrote:
> how can I stop/kill it afterwards (from another process but also in kernel
> land) and wait for it having finished? sys_waitpid isn't a good solution
> as it expects to be the kernel thread a child of the current process..

Maybe you can reparent it like ptrace does:

if (child->p_pptr != current) {
REMOVE_LINKS(child);
child->p_pptr = current;
SET_LINKS(child);
}
send_sig(SIGSTOP, child, 1);

Haven't tried it, just an idea.

Best,
Borislav

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/