From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgseP-0005bK-DB for qemu-devel@nongnu.org; Fri, 19 Sep 2008 22:56:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgseN-0005b8-CA for qemu-devel@nongnu.org; Fri, 19 Sep 2008 22:56:47 -0400 Received: from [199.232.76.173] (port=54228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgseN-0005b5-7T for qemu-devel@nongnu.org; Fri, 19 Sep 2008 22:56:47 -0400 Received: from rv-out-0708.google.com ([209.85.198.246]:65500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgseN-0006mp-9C for qemu-devel@nongnu.org; Fri, 19 Sep 2008 22:56:47 -0400 Received: by rv-out-0708.google.com with SMTP id f25so624579rvb.22 for ; Fri, 19 Sep 2008 19:56:45 -0700 (PDT) Message-ID: Date: Sat, 20 Sep 2008 04:56:45 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] [PATCH] Fix vfork() syscall emulation In-Reply-To: <1221750426-14863-1-git-send-email-kirill@shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1221750426-14863-1-git-send-email-kirill@shutemov.name> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Kirill A. Shutemov" 2008/9/18 Kirill A. Shutemov : > vfork() is a kind of fork, not thread despite CLONE_VM According to clone(2) it can be either, the only difference is that vfork() suspends the parent process. So if CLONE_VM is set, I think still the pthread / clone way should be used and the child thread should be waited on. On the other hand the patch makes fork() and vfork() be treated identically? Cheers