From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#33154: 27.0.50; create_process on Darwin should not invoke setsid() after vfork() [PATCH] Date: Sun, 11 Nov 2018 20:14:33 +0300 Message-ID: References: <8237cee2-9e65-4093-8077-a458cf58c911@cs.ucla.edu> <20181109000741.GA15142@breton.holly.idiocy.org> <875zx6cxgo.fsf@igel.home> <214f349a-d95d-823a-3461-6facd9cbfbbf@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541956395 19169 195.159.176.226 (11 Nov 2018 17:13:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 17:13:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: Alan Third , 33154@debbugs.gnu.org, Andreas Schwab To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 18:13:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLtIM-0004np-K0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 18:13:11 +0100 Original-Received: from localhost ([::1]:43112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLtKS-0005sc-RD for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 12:15:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLtKG-0005qM-JO for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLtKC-0000CP-Fs for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:15:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLtKA-0000BX-Gf for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLtKA-0005Tk-BD for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 33154-submit@debbugs.gnu.org id=B33154.154195648321014 (code B ref 33154); Sun, 11 Nov 2018 17:15:02 +0000 Original-Received: (at 33154) by debbugs.gnu.org; 11 Nov 2018 17:14:43 +0000 Original-Received: from localhost ([127.0.0.1]:46662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLtJr-0005Ss-GF for submit@debbugs.gnu.org; Sun, 11 Nov 2018 12:14:43 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLtJq-0005Sc-4l for 33154@debbugs.gnu.org; Sun, 11 Nov 2018 12:14:42 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C2E1620E73; Sun, 11 Nov 2018 12:14:36 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 11 Nov 2018 12:14:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=k4GczFtbSIPLElTsY0u2HNzTCb 2JMCA77fz+51V6vLU=; b=fHyJn0i5+0+v8b90grP1+DfGjPGwVxqHwSSCaI68k3 BEu00GVRUVogXgE+PNBt5zp0BFE9AFPnNZzcHZleRhQRPbpEjG8p9zommp2k+txm k9DLrCULX1qfsoUsJHmFAMSTqfwCdnXqvr3Z5XIvU4ju3Sh81mhyexmYZL22kKK7 uRX++G1A3K3osEx9WbA0FfeATKSJdf8/X9VpAbTvJtw7OEXLxAHA11iTcB/upqAd yfT4rzqUvYQSOAaJ1DgNm6MB94NPFdkH3Z8TyELFFaFwdc7OADShkjVNoonXR7tH LMicU7YmEjqfSzXfEZzUCA/JQccxc3/zPoVsZaaf5Xpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=k4GczF tbSIPLElTsY0u2HNzTCb2JMCA77fz+51V6vLU=; b=SqAB3U4wf8n1EsgizuLinO +zJi8Kh9QcoQm3hdqRUB22zGCprgc1Y4hgtS7SSFb2CR7065Jw5+hJY8LfducJJR /E1Zon64b6cwveHXz9Xc0vnrtndDowJYCuEAokdYWEgDEaCKi+edojagW1z7JF88 QX5yUxcxr/oqAgN7ZapOzCMWpe+bRtKtDJ4+8jZNnBDIb7U/YGQaP8w94CzQlFEA iPi4lj4qxUvVW/Ai/fAwlQZS+D+O/3qK1SZf2fIDVHB4Bq1+tG9YsOM0ht4vVhEW SSp0GAG7RzMV2YTipMsr38rjzRUtwA94mg6HZw3V5IcdlqrDvA+QmAZLEudNqp+Q == X-ME-Sender: X-ME-Proxy: Original-Received: from fgunbin.local (unknown [93.185.19.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D48B102F0; Sun, 11 Nov 2018 12:14:35 -0500 (EST) In-Reply-To: <214f349a-d95d-823a-3461-6facd9cbfbbf@cs.ucla.edu> (Paul Eggert's message of "Sat, 10 Nov 2018 09:09:14 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152304 Archived-At: On 10/11/2018 09:09 -0800, Paul Eggert wrote: > Filipp Gunbin wrote: >> On 09/11/2018 12:16 +0100, Andreas Schwab wrote: >> >>> On Nov 09 2018, Filipp Gunbin wrote: >>> >>>> I have one failing case: "M-x shell-command sudo ls -la" reports "sudo: >>>> no tty present and no askpass program specified". >>> >>> That's not a bug. If shell-command runs the command synchronously it >>> doesn't allocate a tty. >> >> Are there any reasons for not allocating a pty in this case? A >> synchronous program may be interactive. > > How would the interaction work, though? I can see potential problems with > existing Lisp code that runs synchronous commands if we allocate ptys > for them. Yes, I see, there's no way to interact. Without interaction, there's no sense in allocating pty. > At any rate, that case has always failed the same way on Ubuntu 18.04 etc., so > if this is a problem it's not limited to macOS and someone should file a new bug > report for it. No need for that. Thanks.