From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14074 invoked by alias); 8 Mar 2004 02:22:25 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 14058 invoked from network); 8 Mar 2004 02:22:25 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sources.redhat.com with SMTP; 8 Mar 2004 02:22:25 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 41866357B; Sun, 7 Mar 2004 18:22:22 -0800 (PST) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.9/8.12.9) with ESMTP id i282MLOi004276; Sun, 7 Mar 2004 18:22:22 -0800 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.9/8.12.9/Submit) id i282MKfo004272; Sun, 7 Mar 2004 18:22:20 -0800 Date: Mon, 08 Mar 2004 02:22:00 -0000 Message-Id: <200403080222.i282MKfo004272@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Ulrich Drepper Cc: Andreas Schwab , libc-hacker@sources.redhat.com Subject: Re: getpid/vfork broken In-Reply-To: Ulrich Drepper's message of Sunday, 7 March 2004 15:29:43 -0800 <404BB067.1030309@redhat.com> X-Antipastobozoticataclysm: Bariumenemanilow X-SW-Source: 2004-03/txt/msg00016.txt.bz2 > Andreas Schwab wrote: > > getpid does not return the correct result after vfork: > > It doesn't have to. You are not allowed to call anything but _exit or > one of the exec functions. getpid is something that has always worked in all contexts. I don't think it's worth any other minor benefit to risk breaking applications that do this one thing and have worked since the invention of vfork.