Re: vfork

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 10 Nov 1999 19:14:58 +0000 (GMT)


> 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. And some way for strace to get at the child pid.

Its such a brilliant idea that we already had it...

if (!(clone_flags & CLONE_PTRACE))
new_flags &= ~(PF_PTRACED|PF_TRACESYS);

That was added for the threaded-gdb folks a while back 8)

Alan

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