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 21:20:03 +0300 Message-ID: <837ei5rir0.fsf@gnu.org> References: <83a7n9udxv.fsf@gnu.org> <83ftwuq9ii.fsf@gnu.org> <83a7n2q6jb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540491618 10950 195.159.176.226 (25 Oct 2018 18:20:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 18:20:18 +0000 (UTC) Cc: 33050@debbugs.gnu.org, fitzsim@fitzsim.org, alan@idiocy.org To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 20:20:13 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 1gFkEu-0002kS-Ve for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 20:20:13 +0200 Original-Received: from localhost ([::1]:56446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFkH1-0008GQ-JK for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 14:22:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFkFm-0007hR-Gf for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 14:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFkFj-00037M-C5 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 14:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFkFi-00037G-CS for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 14:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFkFi-0003bz-6k for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 14:21:02 -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 18:21:02 +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.154049164613827 (code B ref 33050); Thu, 25 Oct 2018 18:21:02 +0000 Original-Received: (at 33050) by debbugs.gnu.org; 25 Oct 2018 18:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:42806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFkFR-0003aw-Ps for submit@debbugs.gnu.org; Thu, 25 Oct 2018 14:20:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFkFP-0003ad-VW for 33050@debbugs.gnu.org; Thu, 25 Oct 2018 14:20:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFkFH-0002v2-CI for 33050@debbugs.gnu.org; Thu, 25 Oct 2018 14:20:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFkEx-0002mh-N2; Thu, 25 Oct 2018 14:20:15 -0400 Original-Received: from [176.228.60.248] (port=3391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFkEv-000747-Vo; Thu, 25 Oct 2018 14:20:15 -0400 In-reply-to: (message from Filipp Gunbin on Thu, 25 Oct 2018 21:10:25 +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:151611 Archived-At: > From: Filipp Gunbin > Cc: fitzsim@fitzsim.org, 33050@debbugs.gnu.org, alan@idiocy.org > Date: Thu, 25 Oct 2018 21:10:25 +0300 > > On 25/10/2018 20:29 +0300, Eli Zaretskii wrote: > > >> From: Filipp Gunbin > >> Cc: fitzsim@fitzsim.org, 33050@debbugs.gnu.org, alan@idiocy.org > >> Date: Thu, 25 Oct 2018 20:10:06 +0300 > >> > >> > 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? > >> > >> Yes, setting p-c-t to t worked from the start, but it's just a > >> workaround - there's still problem with p-c-t nil. > >> > >> I'm currently running with this patch, which is based on Alan's fix in > >> callproc.c (call_process() had the same problem on Darwin). > > > > I don't understand why: using nil process-connection-type for programs > > that prompt the user is a bug anyway. > > I think these are separate problems. They are, indeed; and I thought this bug report is about the problem with ldapsearch. If you think the way we start subprocesses on macOS needs fixing, it should be a separate bug, most probably with a different urgency and severity. > So it again became possible that we call setsid() after vfork(), and > this I believe is the root case of the current problem. Once again, I believe the root cause is that process-connection-type has the wrong value.