From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#33154: 27.0.50; create_process on Darwin should not invoke setsid() after vfork() [PATCH] Date: Sat, 10 Nov 2018 09:09:14 -0800 Organization: UCLA Computer Science Department Message-ID: <214f349a-d95d-823a-3461-6facd9cbfbbf@cs.ucla.edu> References: <8237cee2-9e65-4093-8077-a458cf58c911@cs.ucla.edu> <20181109000741.GA15142@breton.holly.idiocy.org> <875zx6cxgo.fsf@igel.home> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1541869688 2360 195.159.176.226 (10 Nov 2018 17:08:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2018 17:08:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: Alan Third , 33154@debbugs.gnu.org To: Filipp Gunbin , Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 10 18:08:04 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 1gLWjr-0000Sq-P4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2018 18:08:03 +0100 Original-Received: from localhost ([::1]:39256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLWly-00041a-3z for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2018 12:10:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLWls-0003zb-9R for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 12:10:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLWln-0002mx-1y for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 12:10:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLWlm-0002lN-Mc for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 12:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLWlm-0004Nw-Ee for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 12:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Nov 2018 17:10: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.154186976416798 (code B ref 33154); Sat, 10 Nov 2018 17:10:02 +0000 Original-Received: (at 33154) by debbugs.gnu.org; 10 Nov 2018 17:09:24 +0000 Original-Received: from localhost ([127.0.0.1]:44915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLWlA-0004Mr-2M for submit@debbugs.gnu.org; Sat, 10 Nov 2018 12:09:24 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLWl7-0004Mb-1G for 33154@debbugs.gnu.org; Sat, 10 Nov 2018 12:09:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BC6C8160079; Sat, 10 Nov 2018 09:09:15 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hAjAhWHVu5-8; Sat, 10 Nov 2018 09:09:15 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E7494160099; Sat, 10 Nov 2018 09:09:14 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 65d0xp69hGcU; Sat, 10 Nov 2018 09:09:14 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B3D78160079; Sat, 10 Nov 2018 09:09:14 -0800 (PST) In-Reply-To: Content-Language: en-US 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:152257 Archived-At: 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. 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.