[PATCH v3] Add support for Linux/no-mmu with vfork

Dmitry V. Levin ldv at altlinux.org
Wed Oct 7 23:35:02 UTC 2009


On Wed, Oct 07, 2009 at 04:10:53AM -0400, Mike Frysinger wrote:
> Systems that lack a MMU cannot use fork() to create the child process.
> First we detect if the toolchain has the fork() symbol and if it does not,
> we just always use vfork().  If it does, then we try that first.  If it
> fails due to ENOSYS, we fall back to using vfork().

I wonder is there any way to implement this without runtime penalty for
systems where fork() never returns ENOSYS?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20091008/02b61f58/attachment.bin>


More information about the Strace-devel mailing list