From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71709: Fix recent change in tramp-sh-handle-make-process Date: Sat, 22 Jun 2024 13:18:05 +0200 Message-ID: <877cehql8y.fsf@gmx.de> References: <87msneqeyn.fsf@gmx.de> <87iky1qvqu.fsf@gmx.de> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20194"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71709@debbugs.gnu.org To: Iurie Marian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 13:19:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sKym7-00058r-Pi for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 13:19:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKyls-0004ny-P0; Sat, 22 Jun 2024 07:19:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKylq-0004nJ-Tl for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 07:19:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKylq-0008Aj-M4 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 07:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKylq-0004Jq-Ck for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2024 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71709 X-GNU-PR-Package: emacs Original-Received: via spool by 71709-submit@debbugs.gnu.org id=B71709.171905509516534 (code B ref 71709); Sat, 22 Jun 2024 11:19:02 +0000 Original-Received: (at 71709) by debbugs.gnu.org; 22 Jun 2024 11:18:15 +0000 Original-Received: from localhost ([127.0.0.1]:44581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKyl4-0004Ib-Tz for submit@debbugs.gnu.org; Sat, 22 Jun 2024 07:18:15 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKyl2-0004IL-JP for 71709@debbugs.gnu.org; Sat, 22 Jun 2024 07:18:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1719055086; x=1719659886; i=michael.albinus@gmx.de; bh=XH5GtLbpRj9BZF94xMO8J2nY9HOUupSFSGlYr9XXISA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=oy3CRVK2vIaj0nVMHZfZGKS9QiBSj0MmLRJgXbJR+ITqAPmyv6+T1z3aGDup07nv +yBXTyLw9Fpqw6sv7EBi6HHtYM7Givd+cERRAYBfMvy3olDf16GZgiKkVYNuNN9fj vklzfuCO3lcwObhMZTfSt9+Nz3SPSeWX8zYXKUFs3J5+Y8flKH31KX3Aa1aeVXTfd UvKvFpw/Ybsq8X9ayCkmipoTwMiI4dAv5EetgTSXnKOnuhFC9uN4ev5uA9togs/oB /4g893tmYbnHSSPfnzDryU45rCPwbp64L7PPFGIBydok+CBTwlrNfg56nrUEF6Br/ jA/Is5sIODcoi6etaw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MuDXz-1sdtgJ0nKn-016974; Sat, 22 Jun 2024 13:18:06 +0200 In-Reply-To: (Iurie Marian's message of "Sat, 22 Jun 2024 11:10:15 +0200") X-Provags-ID: V03:K1:/50qtoj7eyh8ozGWiIHFaeJKlmK6YyKf/9YE6zRMvGF1TBABcOc NTBRWK/TIQJwGYlfomSXBrBwuQ9abq2gw/9jeXyiHA0cJw6w+XbHrmVxH15Vwa+jPZwP7lY fneE0fd1W31N3YxlWpcKDsJ7jCuHdhQB8jWwpgJdfyb72RARnR53kRmwDIp93mWDuJ2+CWl 7DtSJBBGoPTJb75LuGXBA== UI-OutboundReport: notjunk:1;M01:P0:bA05j6Rb+hY=;SNAQ+kk2Uxg+l+k5NyqRrtkDZMV uFraX812ydqeazQuJ4uPM81bKexwq/t87h6bSAL/byaxsW0THeCkML+4sz6XUnS3GSlYpJW+R I4loVpU/zdMMbeZtMZx1VR1u0m7NHdVjfdEwWqZ+c1GMmVys93GqASjphuKORo1sRRx0bU1Ac ZjbEvboOEQQrB2d2zCbTw+a5WzZb0r+Rn5IbG7p4ZB0ghMoA1rIoGEiQNnX79NCXCMnOI8m40 oGEceCuxHqbRfdKUEnMFxgY3CRvH2XmU+ThPD9ejL1Vydcugbxyxl/JFyB8VxP5HnwJV7XmNR i2MbooKKP3DZljMuvlDkLLcFToXVoBqagLL9HcCjVPWiJNWyye5hHOGlUP+1YcV7dvgBXG1qw tszBrsCCUVmc97iwJmiSZm5TduxZgruAoNfqKpvLWOSJeE5v4UvLgBqdJYnyQQ/u8bhdDtRrM Ux1j1w3s9B4ZrPNw78vBV5/tCzTxFHh56ehrbkw1nxWtyWs8uglU0eB3iMfXHzOCTQ+Hgve7g 3S1R6fjs3Sa8144BQil2D+wbFU8RfPKaSEFhcg/lMsnb+zYDK1GKZ8CobCXywAjQ30ZiopizQ hOXKJGp7asZY8OKmyLRfvoDB/n+B+TaFwqp2nDlRBP8RaEpTaynZf3ANasrw6Etl7EOCoW8N/ fZ+fKYMz38sjaMTqV+rCkDbdhYjykR2/Yd8+gXcZXGt2/GVtPfvZ5m065qGfybYSWXFfvv7P9 LBv029tHQ9xAZ8Oi7FZn73q8/JQNdZJUbOkTLHPyo4ZQ32engwsQlmzyx6upnYdOVhY6bS1z X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287699 Archived-At: Iurie Marian writes: > Hello Michael, Hi Iurie, > Could you please try the below snippet? > Evaluate it in a local and _remote_ buffer. > ``` > ;; -*- lexical-binding: t; -*- > > (let ((.test-buffer (get-buffer-create "*test buffer*")) > (.remote? (file-remote-p default-directory))) > (with-current-buffer .test-buffer > (goto-char (max-char)) > (insert "====================\n") > (insert (if .remote? "Remote:\n" "Local :\n"))) > > (make-process :file-handler t > :connection-type 'pipe > :name "test proc" > :stderr .test-buffer > :noquery t > :command (list "echo" "Hello!") > :filter (lambda (proc str) > (with-current-buffer .test-buffer > (goto-char (max-char)) > (insert "test proc output: " str))))) > ``` > > I get the below output: > ``` > ==================== > Local : > > Process test proc stderr finished > test proc output: Hello! > ==================== > Remote: > /usr/bin/cat: /tmp/tramp.J0RZDc: No such file or directory > ``` > > I would expect "Hello!" output from _remote_ as well. Isn't it? > It seems that the process is not executed and the output > "/usr/bin/cat: /tmp/tramp.J0RZDc: No such file or directory" is from > stderr. Thanks for the recipe. I've played with it. Most cases, it works as expected, but sometimes I see a similar error. Looks like a race condition. I'll debug further. > Kind Regards, > Iurie Best regards, Michael.