qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5279] Band-aid vfork() emulation (Kirill Shutemov).
@ 2008-09-21  2:39 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-09-21  2:39 UTC (permalink / raw)
  To: qemu-devel

Revision: 5279
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5279
Author:   balrog
Date:     2008-09-21 02:39:45 +0000 (Sun, 21 Sep 2008)

Log Message:
-----------
Band-aid vfork() emulation (Kirill Shutemov).

Modified Paths:
--------------
    trunk/linux-user/syscall.c

Modified: trunk/linux-user/syscall.c
===================================================================
--- trunk/linux-user/syscall.c	2008-09-21 02:34:50 UTC (rev 5278)
+++ trunk/linux-user/syscall.c	2008-09-21 02:39:45 UTC (rev 5279)
@@ -2800,6 +2800,10 @@
     sigset_t sigmask;
 #endif
 
+    /* Emulate vfork() with fork() */
+    if (flags & CLONE_VFORK)
+        flags &= ~(CLONE_VFORK | CLONE_VM);
+
     if (flags & CLONE_VM) {
 #if defined(USE_NPTL)
         new_thread_info info;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-21  2:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-21  2:39 [Qemu-devel] [5279] Band-aid vfork() emulation (Kirill Shutemov) Andrzej Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).