Re: Linux pre8 and vfork

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Tue, 19 Jan 1999 10:18:54 +0100 (CET)


>
>
> Hi,
>
> the "real" patch-2.2.0-pre8 now removed sys_vfork on ix86 (but not
> __NR_vfork in asm-i386/unistd.h). Was this really intented and has
> vfork now disappeared? What's the situation on the other
> architectures? Should glibc revert to using fork instead of vfork or
> is there a special way, e.g. with using CLONE_VFORK, to get vfork
> back?

On all archs, clone (CLONE_VM|CLONE_VFORK|SIGCHLD, NULL)
will do the job, plus I think alpha, sparc and sparc64 will have regular
vfork syscall (as they have to implement it for DU/Solaris/SunOS
compatibility anyway).
I think the __NR_vfork in i386's unistd.h could go away, I think vfork has
not been in l-k for long and nobody released yet a libc with that vfork...

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.2.0-pre7 on a sparc64 machine (3958.37 BogoMips)
___________________________________________________________________

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