Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262085AbUFEVxy (ORCPT ); Sat, 5 Jun 2004 17:53:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262060AbUFEVxy (ORCPT ); Sat, 5 Jun 2004 17:53:54 -0400 Received: from pimout3-ext.prodigy.net ([207.115.63.102]:26281 "EHLO pimout3-ext.prodigy.net") by vger.kernel.org with ESMTP id S262085AbUFEVxx (ORCPT ); Sat, 5 Jun 2004 17:53:53 -0400 Date: Sat, 5 Jun 2004 14:53:46 -0700 From: Chris Wedgwood To: Arjan van de Ven Cc: Linus Torvalds , Russell Leighton , Kernel Mailing List Subject: Re: clone() <-> getpid() bug in 2.6? Message-ID: <20040605215346.GB29525@taniwha.stupidest.org> References: <40C1E6A9.3010307@elegant-software.com> <20040605205547.GD20716@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040605205547.GD20716@devserv.devel.redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 559 Lines: 18 On Sat, Jun 05, 2004 at 10:55:47PM +0200, Arjan van de Ven wrote: > ... or glibc internally caches the getpid() result and doesn't > notice the app calls clone() internally... strace seems to show 1 > getpid() call total not 2. glibc caches getpid() ?!? it's not like it's a slow syscall or used often --cw - 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/