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#33050: 27.0.50; [macOS] Problem with process input with process-connection-type nil Date: Wed, 24 Oct 2018 01:41:50 +0300 Message-ID: References: <83a7n9udxv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1540334424 4771 195.159.176.226 (23 Oct 2018 22:40:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2018 22:40:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: 33050@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 00:40:20 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 1gF5LU-00015o-5b for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 00:40:17 +0200 Original-Received: from localhost ([::1]:44541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF5Na-0006bD-2u for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2018 18:42:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF5NQ-0006b3-I3 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 18:42:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF5NF-0007kM-8w for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 18:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF5NC-0007iD-TH for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 18:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gF5NC-00036R-Qn for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 18:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2018 22:42: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.154033451711906 (code B ref 33050); Tue, 23 Oct 2018 22:42:02 +0000 Original-Received: (at 33050) by debbugs.gnu.org; 23 Oct 2018 22:41:57 +0000 Original-Received: from localhost ([127.0.0.1]:38782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF5N7-00035y-Cr for submit@debbugs.gnu.org; Tue, 23 Oct 2018 18:41:57 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:44799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF5N5-00035q-Dx for 33050@debbugs.gnu.org; Tue, 23 Oct 2018 18:41:55 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 22002B5F; Tue, 23 Oct 2018 18:41:54 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Oct 2018 18:41:54 -0400 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=ztkwHQBZL7Ed9hpk51mnziB00V 1I0QNjM8mkFspIi9A=; b=hz59/mVbvziWrqZhiLXOnu2q7bRRAzZ7RngnoVHY2Q emsspodRQvmRhAZWg1+kmGhOcK9PYLi2c4WZuvNB9figgvq3+tcrZRWDkv71uKIj DV79ZC6vDn6BlKxrdMrEYsawEAY3HZcEq18wClPp6a7nK49g5B96x3WENK46MI6p QebL4Obldy8GytLAaf5JQtD8G1utUcl13rCFq/dlMEago88HSVZaP0jH7HU1Z66S 0vTPwSh28mEAQxt7TL/HOfZAJf0mDACk4GaLNRp0ihlffUc0u55HGgdnDHizkp4e m8BUY8J95vqfmQilERS/bY2jtmerIxr1CoM0Zwr2f+/Q== 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=ztkwHQ BZL7Ed9hpk51mnziB00V1I0QNjM8mkFspIi9A=; b=LEYF3Eyyzk4ZYJ3E6VFdaD L5y1sz9PjJ1lw4A+mnFwvJjgVJ3XBvEkMdmo20L1Y2vvaGUpkCnKpZa5rxKhlBHv 8y3O7d4MmUKV7WVQf+7+7Sv+Gn7rIp6bdiHiXZ17txYyBlZHp7sO5qXBLLEJqv89 /GraIvdhAdVmVx2H3q6nGWjGp2wqlWC80oTDEhSGa8PYEMnRhIPuI1pSffzDtmTU 4TLElG2xujLNnuZR9EISJISiYUdOF8Upez6lJpKKlcxjMWs2fYpZpu/lskzFdkc2 nlBoDPfdqlIrXFShnrEkW2Ka8ErI5WzRGpS7I1msHaMy/AM4IZIEXtxPjCvALPKA == X-ME-Sender: X-ME-Proxy: Original-Received: from fgunbin.local (unknown [93.185.19.142]) by mail.messagingengine.com (Postfix) with ESMTPA id 51A38102F3; Tue, 23 Oct 2018 18:41:52 -0400 (EDT) In-Reply-To: (Thomas Fitzsimmons's message of "Mon, 22 Oct 2018 21:53:00 -0400") 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:151533 Archived-At: Thomas, On 22/10/2018 21:53 -0400, Thomas Fitzsimmons wrote: [..] > As for that specific line, I may have copied it from another part of > Emacs that reads a password via a pipe; when I look now at other places > that bind this variable to nil, I see comments like this one in > lisp/gnus/nntp.el: > > ;; A non-nil connection type results in mightily odd behavior where > ;; (process-send-string proc "\^M") ends up sending a "\n" to the > ;; ssh process. --Stef > ;; Also a nil connection allow ssh-askpass to work under X11. > (let ((process-connection-type nil)) > (apply 'start-process "nntpd" buffer command)) > > Today I tested my setup (x86_64 GNU/Linux, OpenLDAP ldapsearch 2.4.40) > without setting process-connection-type to nil, and it still works. The > documentation for that variable says that the fallback is to use a pipe > if all ptys are busy in which case I guess this would still fail for > you. > > Your test case behaves the same way for me on x86_64 GNU/Linux. Do you mean it fails, or it works ok (regardless of process-connection-type value)? > Maybe our ldapsearch commands are behaving differently. What version of > ldapsearch are you using? I have OpenLDAP 2.4.28. Filipp