getpid/vfork broken

Ulrich Drepper drepper@redhat.com
Tue Mar 9 02:04:00 GMT 2004


Roland McGrath wrote:
> In NPTL-supporting Linux kernels (2.6), I think we can just use the clone
> syscall with CLONE_VFORK|CLONE_CHILD_SETTID.

No.  There is a reason why a vfork syscall was introduced.  There aren't
enough registers to use clone and hold the return address.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖



More information about the Libc-hacker mailing list