From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33050: 27.0.50; [macOS] Problem with process input with process-connection-type nil Date: Thu, 25 Oct 2018 19:24:53 +0300 Message-ID: <83ftwuq9ii.fsf@gnu.org> References: <83a7n9udxv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540484651 28312 195.159.176.226 (25 Oct 2018 16:24:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 16:24:11 +0000 (UTC) Cc: 33050@debbugs.gnu.org, fitzsim@fitzsim.org To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 18:24:07 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 1gFiQZ-0007GD-8W for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 18:24:07 +0200 Original-Received: from localhost ([::1]:55824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFiSf-0007xE-O6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 12:26:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFiSY-0007wt-Rn for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 12:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFiST-0002CB-KT for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 12:26:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38505) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFiSQ-0001ya-6w for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 12:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFiSP-0000p6-Ty for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 12:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33050-submit@debbugs.gnu.org id=B33050.15404847143097 (code B ref 33050); Thu, 25 Oct 2018 16:26:01 +0000 Original-Received: (at 33050) by debbugs.gnu.org; 25 Oct 2018 16:25:14 +0000 Original-Received: from localhost ([127.0.0.1]:42763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFiRe-0000nt-1B for submit@debbugs.gnu.org; Thu, 25 Oct 2018 12:25:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFiRb-0000nd-Jt for 33050@debbugs.gnu.org; Thu, 25 Oct 2018 12:25:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFiRR-0008Nq-D2 for 33050@debbugs.gnu.org; Thu, 25 Oct 2018 12:25:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFiRR-0008Ne-91; Thu, 25 Oct 2018 12:25:01 -0400 Original-Received: from [176.228.60.248] (port=4216 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFiRP-0007c0-VV; Thu, 25 Oct 2018 12:25:01 -0400 In-reply-to: (message from Filipp Gunbin on Thu, 25 Oct 2018 18:51:17 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:151606 Archived-At: > From: Filipp Gunbin > Cc: Eli Zaretskii , 33050@debbugs.gnu.org > Date: Thu, 25 Oct 2018 18:51:17 +0300 > > With process-connection-type nil, we call vfork() and then setsid() > apparently fails (at least to reset child's controlling terminal). > > I tried to change the above to just use fork(), and got the correct > behavior. > > If only I knew how to fix this correctly, without reverting to fork() > :-) Does anyone have ideas? I'll try to look into this further myself, > and will write back. I'm probably missing something: why are you still trying to find a solution, when one was already found? What's wrong with setting process-connection-type non-nil in this case, at least for Darwin?