Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262382AbUFEX0X (ORCPT ); Sat, 5 Jun 2004 19:26:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262418AbUFEX0X (ORCPT ); Sat, 5 Jun 2004 19:26:23 -0400 Received: from x35.xmailserver.org ([69.30.125.51]:23940 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id S262382AbUFEX0V (ORCPT ); Sat, 5 Jun 2004 19:26:21 -0400 X-AuthUser: davidel@xmailserver.org Date: Sat, 5 Jun 2004 16:26:19 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@bigblue.dev.mdolabs.com To: Linus Torvalds cc: Robert Love , Chris Wedgwood , Arjan van de Ven , Russell Leighton , Kernel Mailing List Subject: Re: clone() <-> getpid() bug in 2.6? In-Reply-To: Message-ID: References: <40C1E6A9.3010307@elegant-software.com> <20040605205547.GD20716@devserv.devel.redhat.com> <20040605215346.GB29525@taniwha.stupidest.org> <1086475663.7940.50.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 24 On Sat, 5 Jun 2004, Linus Torvalds wrote: > > > On Sat, 5 Jun 2004, Davide Libenzi wrote: > > > > It is likely used by pthread_self(), that is pretty much performance > > sensitive. I'd agree with Ulrich here. > > It _can't_ be used for pthread_self(), since the pid is the _same_ across > all threads in a pthread environment. Yeah, I just checked. It is not for that. And like Robert was saying, it'd have been a gettid(). - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/