From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CTkVz-00068x-VZ for user-mode-linux-devel@lists.sourceforge.net; Mon, 15 Nov 2004 09:19:43 -0800 Received: from smtp005.mail.ukl.yahoo.com ([217.12.11.36]) by sc8-sf-mx2.sourceforge.net with smtp (Exim 4.41) id 1CTkVy-0008Tt-N3 for user-mode-linux-devel@lists.sourceforge.net; Mon, 15 Nov 2004 09:19:43 -0800 From: Blaisorblade Subject: Re: [uml-devel] Re: Stop at startup on 2.6 NPTL hosts References: <20041029092641.8558.qmail@web26102.mail.ukl.yahoo.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411151817.15178.blaisorblade_spam@yahoo.it> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 15 Nov 2004 18:17:13 +0100 To: user-mode-linux-devel@lists.sourceforge.net Cc: Henrik Nordstrom , Geert Uytterhoeven , stian@nixia.no, Bodo Stroesser , Jeff Dike , Roland Kaeser , Nuno Silva , Antoine Martin , Sven =?utf-8?q?K=EF=BF=BDhler?= , Dennis Muhlestein On Wednesday 10 November 2004 22:19, Henrik Nordstrom wrote: > On Wed, 10 Nov 2004, Geert Uytterhoeven wrote: > > Why? getpid() is just an API call. No one guarantees it's actually a > > syscall. And IMHO caching getpid() is allowed, since the returned value > > won't change anyway. The cache must be cleared on fork() (which is done) and on clone(). > And in case of pthreads SHOULD be different from the Linux process ID. He was misunderstanding the thread - UML calls clone() without CLONE_THREAD, so that on this aspect it is fork()-like, so no thread group is created, just a child process. Which has a different PID. But glibc does not clean the thread-local-storage (or just the getpid() cached value in it) appropriately when using clone(). -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel