Re: kernel thread support - LWP's

Jeff Dike (jdike@karaya.com)
Sun, 18 Jul 1999 11:21:29 -0300


ak@muc.de said:
> Why can't you do that by clone()ing to a trampoline that sends SIGSTOP
> to itself ?

In the user-mode kernel, I need to be able to have a process fork and have the
child stopped. I do get to rewrite the system call, but I don't get to chose
the code that gets cloned to.

Right now, I write a halt instruction right after the system call, and use the
resulting seg fault to stop the child. A CLONED_STOPPED flag would be far
more pleasant.

Jeff

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