From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HS2DC-0001yF-O1 for user-mode-linux-devel@lists.sourceforge.net; Thu, 15 Mar 2007 19:30:38 -0700 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HS2DA-0007pQ-Qf for user-mode-linux-devel@lists.sourceforge.net; Thu, 15 Mar 2007 19:30:34 -0700 Date: Thu, 15 Mar 2007 22:29:14 -0400 From: Jeff Dike Message-ID: <20070316022914.GA8635@c2.user-mode-linux.org> References: <0A01463223B8164194908CAC85B66A1201A9750B@ZMY16EXM67.ds.mot.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <0A01463223B8164194908CAC85B66A1201A9750B@ZMY16EXM67.ds.mot.com> Subject: Re: [uml-devel] Regarding fork() implementation in UML List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Krishnappa Abhijith-A21204 Cc: user-mode-linux-devel@lists.sourceforge.net On Thu, Mar 15, 2007 at 10:29:28PM +0800, Krishnappa Abhijith-A21204 wrote: > Can pls let me know why current->thread.forking = 1 was done before > calling do_fork() and then reset after that ? If you look at copy_thread, you will see that there is different treatment for kernel threads and processes, and thread.forking is used to distinguish between them. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel