From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: master 2c79a8f 2/2: Use posix_spawn if possible. Date: Fri, 1 Jan 2021 23:56:15 +0000 Message-ID: References: <835z4qnhyx.fsf@gnu.org> <83y2hklqhg.fsf@gnu.org> <83wnx4lq3b.fsf@gnu.org> <86k0swut21.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28520"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 02 00:57:22 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kvUIM-0007Jc-F4 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jan 2021 00:57:22 +0100 Original-Received: from localhost ([::1]:39606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvUIL-00045u-HH for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jan 2021 18:57:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvUHS-0003Zl-KP for emacs-devel@gnu.org; Fri, 01 Jan 2021 18:56:26 -0500 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:41123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvUHO-0008QZ-1m for emacs-devel@gnu.org; Fri, 01 Jan 2021 18:56:25 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 267786028A for ; Fri, 1 Jan 2021 23:56:17 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1609545376; bh=ea71uUTG2OC0i5QW9eHQHtjNp1QFwqb8Co9nO0NiUNQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m3Q//cgYSlVOprzdz2y2GdXaGq/w9sueYi5MQAIfPh6QpsqOE6JDaofYKL3ZjNOho ySeXrLr/h6+G0QethSkNyZ7Gae55vlbhAVNuHzk0in3hA24NG+jdCAD9y+v1RytpmL RmnTeYNLE2GXFBmQJT6baxqpVJvjN8cpMxTCr0Js6dilDBRMMlEZbYM9tqe8+LDJ5h jdptDmqQj5nAJuawMhkfOUcSWVNhzwlSoZ4E5POkjHHn+BlmLQfUsMphhOXWaDyHVW hKvpTtLo4BdeKyke+QmBBkNLjQmOfkpMic6i5U0B2AUTVm7X3uRmbPFr2b4924ZvoA A7/fQd8Qk7RLQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 6789F20297BD38; Fri, 1 Jan 2021 23:56:15 +0000 (GMT) Mail-Followup-To: Alan Third , Andy Moreton , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <86k0swut21.fsf@gmail.com> Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262274 Archived-At: On Fri, Jan 01, 2021 at 11:38:14PM +0000, Andy Moreton wrote: > On Thu 31 Dec 2020, Philipp Stephani wrote: > > The annoying thing about this, though, is that it doesn't work on the > > BSDs (including macOS). For pty processes on those systems we'll have > > to continue using fork/vfork for the time being. > > I think that using posix_spawn on GNU/Linux and for non-pty processes > > is still a significant win, though. > > Can I ask why ? You have not yet explained what benefit this change > brings, and the length of the discussion shows that there are > difficulties with it. What is improved by using posix_spawn ? posix_spawn is supposed to be significantly faster than fork/exec on macOS and Cygwin. -- Alan Third