From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3603 invoked by alias); 9 Mar 2004 07:48:47 -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 3587 invoked from network); 9 Mar 2004 07:48:46 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 9 Mar 2004 07:48:46 -0000 Received: from redhat.com (drepper@myware.akkadia.org [192.168.7.70]) (authenticated bits=0) by myware.akkadia.org (8.12.11/8.12.10) with ESMTP id i297mQiW022770 for ; Mon, 8 Mar 2004 23:48:26 -0800 Message-ID: <404D76CA.4010500@redhat.com> Date: Tue, 09 Mar 2004 07:48:00 -0000 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040308 MIME-Version: 1.0 To: libc-hacker@sources.redhat.com Subject: Re: getpid/vfork broken References: <404BDA36.6000202@redhat.com> <200403080237.i282bXG6004322@magilla.sf.frob.com> <20040308110105.GN3822@sunsite.ms.mff.cuni.cz> In-Reply-To: <20040308110105.GN3822@sunsite.ms.mff.cuni.cz> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-03/txt/msg00030.txt.bz2 I've checked in some changes for x86 and x86-64. But I still think it's a terrible idea to even try to support it. For instance, on x86 it's not possible to get the tid field corrected, too. So raise won't work (fortunately it's caught by the kernel). It is possible on other archs but only at the code of making each and every user of the tid field more complicated. That's simply not acceptable and this is why vfork was crippled. It interferes far too much with many other parts of the implementation. Anyway, for the getpid handling, the other archs need to be handled, too. The x86/x86-64 changes are kept small, I envision this is the model for the other archs, too. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖