From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56729 invoked by alias); 13 Sep 2018 12:30:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 56717 invoked by uid 89); 13 Sep 2018 12:29:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SEM_URI,SEM_URIRED,SPF_PASS autolearn=no version=3.3.2 spammy=H*p:D*org, *is*, Zanella, zanella X-HELO: mail-qk1-f196.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ueItFLlljadF3+d6xL+CzbdbZ/TmwZG3F23z47aQt0c=; b=j+YyjsjD7bjOb2/s9ggQSoz1LtlGfOSX6IpI9erufUaffRJJvq5cVmK2UcH1CRXhiF ZvUOYnIgRjrms9KMNaUlRQ/EddILfXCkwdcNRzeObWYQWwNKl7tSqCEsxPyfNO0YIoCO 8O5TEOVxIUIs8YuD9858DkxVR+61GEDzMlU1I= Return-Path: Subject: Re: system and popen fail in case of big application To: Andreas Schwab Cc: Martin Buchholz , Zack Weinberg , GNU C Library References: <0caab9ea-5c2c-fe37-385b-090b21dd3cbb@linaro.org> <01ffd458-794b-6d05-0635-f13437bec096@linaro.org> From: Adhemerval Zanella Openpgp: preference=signencrypt Message-ID: Date: Thu, 13 Sep 2018 12:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-09/txt/msg00183.txt.bz2 On 13/09/2018 03:31, Andreas Schwab wrote: > On Sep 12 2018, Adhemerval Zanella wrote: > >> - vfork would be supported on Linux not because its a good interface, >> but rather than Linux policy is to not broke userspace in any case. >> And it would be supported only on architectures that already provide >> it, new ports do not automatically export vfork and they are not >> encouraged to do so. Currently ARC, alpha, s390, microblame, x86, sH, >> powerpc, hexagen, parisc, m68k, arm, and aarch64 do so (and aarch64 >> only if compat mode is enabled, a 64-bit kernel only won't have vfork >> syscall). For remaining arches, glibc will just use a clone plus >> required flags (CLONE_VM | CLONE_VFORK | SIGCHLD). > > That doesn't make sense. CLONE_VFORK *is* vfork in all matters, and > every architecture supports it. It's nothing different from the fact > that there is no open syscall any more, because openat does the same > (and more). > What I meant is the *wire up* syscall which is not automatically provided anymore. Sure you can implement vfork with CLONE_VFORK and it is what glibc does and will continue to do so unless we decide to remove it.