From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1637 invoked by alias); 9 Mar 2004 02:04:33 -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 1417 invoked from network); 9 Mar 2004 02:04:32 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 9 Mar 2004 02:04:32 -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 i29249JN019967; Mon, 8 Mar 2004 18:04:10 -0800 Message-ID: <404D2619.6050005@redhat.com> Date: Tue, 09 Mar 2004 02:04: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: Roland McGrath CC: libc-hacker@sources.redhat.com Subject: Re: getpid/vfork broken References: <200403090128.i291SEYg007930@magilla.sf.frob.com> In-Reply-To: <200403090128.i291SEYg007930@magilla.sf.frob.com> 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/msg00028.txt.bz2 Roland McGrath wrote: > In NPTL-supporting Linux kernels (2.6), I think we can just use the clone > syscall with CLONE_VFORK|CLONE_CHILD_SETTID. No. There is a reason why a vfork syscall was introduced. There aren't enough registers to use clone and hold the return address. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖