Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp647880ybk; Fri, 15 May 2020 09:55:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSULjyfsyJdVxQnafK7Htp8kx+gPVlO6tm6TValnlcUIS1yZdys7bJtA4zbL0maTG0vi4S X-Received: by 2002:aa7:dc49:: with SMTP id g9mr3519267edu.62.1589561719340; Fri, 15 May 2020 09:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589561719; cv=none; d=google.com; s=arc-20160816; b=KH+daezVDaE7VWaAg2pW9E4WcIpUMUdYequfbqkC1HfNmAOy7ns1sJPnjHVmBJ3gGn 8zdUxgfwafJW8yLtG9FVzWfO7QHfqWCLbbpv1nQXFmRZoJ23g0SJFulY2V5kcpv5tIZt 0hqgHsbodaoPvSiqAFHyLL01S1s/7xHylvwBjbnTaBtGypM6d4hkdWcSXZDjksEitJka t8u0jfr7dNOZH5c5Fj8lvqflaLU/d82aYSgPZBkkDnXdjQ1c4spdIDkk0FlD02oREBH3 2xYGpji1qHeXLUa6c0Aij5pmnMepVonilOYjH8bkFVunsWMLwivtF7w2cE+2bW41r7nD knsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=gN8Ffkm75Z04j5uijHXbjpI4CgfRAT5o0xWHEAmKzV4=; b=rUOBhd21D90D/lyNQ2lVjFEJb/fwGbqjUhxiEqt5Bd7MY0dBy2V4FO7wcJQPUvK5ot IWkqYSC79R3o91cEuQrtm/C/3zJaEoDbey/S0VZ/XuSMgFWeq00KPfL6aPAL0C3weole aEWcL3KZRT0DhPB1X0y6dknWBebUW0/VDE/W6X1rAaGQzV6IMOYOJiT8OPSMIvQMWiP6 7RqQduKDoLjNAoqH7AxqkXgvDNF4zpoPDK4voxbUKaDpNnFT6hdgoVZJLNZTncwzEYW4 J5mLgFq0HJGiP7Fan51VzJ9xEqU4I7Q0tsgGAB0JH+QtU9BrJ/JZBYt2jglGhEKKN0j8 LfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LTQTy1Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si1728786ejo.520.2020.05.15.09.54.56; Fri, 15 May 2020 09:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LTQTy1Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbgEOQxg (ORCPT + 99 others); Fri, 15 May 2020 12:53:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48662 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726023AbgEOQxd (ORCPT ); Fri, 15 May 2020 12:53:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589561610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gN8Ffkm75Z04j5uijHXbjpI4CgfRAT5o0xWHEAmKzV4=; b=LTQTy1Hp92ZH/93lZOVcssDrHZur8fZalYvnHhDcQOHRx/xRm5nkVWzhpZw7UQ7ecHssr5 ZCX5icXjuIUkCjslivb93FcD3ED4yvjemZ7/hfuvxk+5HDYmz5yWDwL5stWTkDQERkN0Hu HBd3E+kv2gkUBSQ3zbHG6qdDS0cw1TI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-388-cSjPPTozMs-pT9w2NnPfzw-1; Fri, 15 May 2020 12:53:28 -0400 X-MC-Unique: cSjPPTozMs-pT9w2NnPfzw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5DF4819200C0; Fri, 15 May 2020 16:53:25 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-112-95.rdu2.redhat.com [10.10.112.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8977F5D9C9; Fri, 15 May 2020 16:53:21 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <954ef5ce2e47472f8b41300bf59209c5@garmin.com> References: <954ef5ce2e47472f8b41300bf59209c5@garmin.com> <20200515152321.9280-1-nate.karstens@garmin.com> <20200515160342.GE23230@ZenIV.linux.org.uk> To: "Karstens, Nate" Cc: dhowells@redhat.com, Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Jakub Kicinski , "Eric Dumazet" , David Laight , "linux-fsdevel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-alpha@vger.kernel.org" , "linux-parisc@vger.kernel.org" , "sparclinux@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Changli Gao Subject: Re: [PATCH v2] Implement close-on-fork MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <197933.1589561600.1@warthog.procyon.org.uk> Date: Fri, 15 May 2020 17:53:20 +0100 Message-ID: <197934.1589561600@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Karstens, Nate wrote: > > already has a portable solution > > What is the solution? sys_spawn(const char *path, const char **argv, const char **envv, unsigned long clone_flags, unsigned int nfds, int *fds); maybe? David