Messages in this thread | | | Subject | Re: vfork | Date | Wed, 10 Nov 1999 15:31:20 -0500 | From | Jeff Dike <> |
| |
> Sounds like the correct fix is not vfork()-related at all, but rather > a flag to clone() to set "trace child process", so that the new child > starts out stopped and traced.
That would be nice. However, there is a workaround. You change fork (or vfork) to a clone which starts off on a trampoline, which stops itself and allows strace to get the pid and ptrace it.
I had to do this for the user-mode port. If anyone wants the code, let me know, and I'll send it over.
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/
| |