From 436d124b7d538b1fd9cf72edf17770664c309856 Mon Sep 17 00:00:00 2001 From: balrog Date: Sun, 21 Sep 2008 02:39:45 +0000 Subject: Band-aid vfork() emulation (Kirill Shutemov). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5279 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux-user') diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 64d700d..40c0ed8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2800,6 +2800,10 @@ static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp, 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; -- cgit v1.1