GNU bug report logs - #43226
28.0.50; Running Tramp tests on MS-Windows leaves zombie processes on the remote

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eli Zaretskii <eliz@HIDDEN>; dated Sat, 5 Sep 2020 16:39:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 26 Oct 2022 12:01:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 26 08:01:50 2022
Received: from localhost ([127.0.0.1]:53533 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onf6T-0004mp-Va
	for submit <at> debbugs.gnu.org; Wed, 26 Oct 2022 08:01:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34052)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1onf6Q-0004mY-V7
 for 43226 <at> debbugs.gnu.org; Wed, 26 Oct 2022 08:01:48 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onf6F-00072q-KD; Wed, 26 Oct 2022 08:01:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=1e71ogopPsvcv959nAJ/DPq/sW5l8Y13I9WsU0tpzvk=; b=PAICTAWD5bRMENwVvMLt
 lh/k+eh+0FfyDDIQfcYu026PcrK8Hy+L/Sm+ns1JluOUHP4E6TF7p1GhJm4T1g4fgG1RaRt83uFtB
 IRSwz6D1QQNaufgSR8clsrwh5xDceAiXxRe/VGX1hGoM1cpm75/kWwsGaZAxTrVdcXLgpCJ/xLE33
 0fsmjj34QKUKJCrvg0b5RRgzTNTnMnZEyMs8vC1ew8dSrZf1352cXjtr783cNj0PvXwrRaFCikmyY
 BhA7XYbGRtP8qYxuszcfdre6NMq7+EV7FPaZV8Tosqco2nJ+MBU/BjpcoBje5OAx2oP7C5TYMmSRF
 qLVMInsdoAN0dw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onf62-0001v8-9d; Wed, 26 Oct 2022 08:01:30 -0400
Date: Wed, 26 Oct 2022 15:01:12 +0300
Message-Id: <83bkpyoktz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Henrik Ahlgren <pablo@HIDDEN>
In-Reply-To: <87wn8mhl8u.fsf@HIDDEN> (message from Henrik Ahlgren on
 Wed, 26 Oct 2022 14:34:09 +0300)
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
 <87k04oi6n4.fsf@HIDDEN> <838rl4p2ik.fsf@HIDDEN>
 <871qqwhuqy.fsf@HIDDEN> <83lep3ogpt.fsf@HIDDEN>
 <87wn8mhl8u.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org, michael.albinus@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Henrik Ahlgren <pablo@HIDDEN>
> Cc: Michael Albinus <michael.albinus@HIDDEN>, 43226 <at> debbugs.gnu.org
> Date: Wed, 26 Oct 2022 14:34:09 +0300
> 
> This issue is documented on the FAQ section of the Magit manual:
> 
>   A.2.13 I am unable to stage when using Tramp from MS Windows
>   ------------------------------------------------------------
> 
>   Magit may be unable to stage (or otherwise apply) individual hunks when
>   you are connected to remote machine using Tramp and the local machine
>   uses MS Windows.
> 
>      There appears to be a problem with ‘process-send-eof’ in this
>   scenario, as mentioned at the end of ‘tramp-tests.el’.  I have contacted
>   the Tramp maintainer about this.  For now this unfortunately means that
>   it just doesn’t work and we cannot do anything about it.  If you have
>   more information, then please comment on
>   <https://github.com/magit/magit/issues/3624>.

This doesn't really add any useful information.

> After some debugging I figured out that by simply adding
> (process-send-string process "\004") in magic-process.el before (maybe
> even instead?) of process-send-eof, it works perfectly well. Maybe it's
> a valid workaround, or even the proper fix, but clearly there is some
> point of having a separate function for sending EOF.
> 
> In the C implementation of process-send-eof (Emacs 27.1), it seems to only
> send EOF if the process has pty_flag set:
> 
>   if (XPROCESS (proc)->pty_flag)
>     send_process (proc, "\004", 1, Qnil);
> 
> I think this could be the reason: after all I believe PTYs are a fairly
> recent feature in Windows and Emacs does not support it yet?

Emacs doesn't (and probably will not) support the Windows
Pseudo-Console because it falls short of what Emacs needs: it doesn't
allow to send stuff in arbitrary encoding via this channel.  I filed a
bug report with the developers many moons ago, but their response was
that it will probably never fixed.  So you can only talk to a program
that uses the current system codepage, which is useless for Emacs.

So the ->pty_flag case is not for Windows.  And even if we did try
using it, it wouldn't have worked for local processes, because Ctrl-D
is NOT the EOF character on Windows; it's Ctrl-Z, and then only if the
sub-process does text-mode reads (in binary mode, there's no way to
send EOF to a subprocess, only kill it).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 25 Oct 2022 19:18:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 25 15:18:11 2022
Received: from localhost ([127.0.0.1]:52313 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onPRC-0003oH-Pl
	for submit <at> debbugs.gnu.org; Tue, 25 Oct 2022 15:18:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53168)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1onPR9-0003nw-9e
 for 43226 <at> debbugs.gnu.org; Tue, 25 Oct 2022 15:18:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onPR3-0001BB-En; Tue, 25 Oct 2022 15:18:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=5hmBXlm5t2s5zU5WPM3eysYONlfRPUxoo1u4Nj3+KdE=; b=emsredoWoz6e
 DrwMtaCPZAhvl9cx0axhodyP+LEt4jzNSujnBX6Tr9tXYTYD1TRD2K3kWjYqA7ipXowHkk3sDbUj6
 LfoERiUR7d9RbyrBDZjFhQBv1wlYIjbY/3cc+wtvbyCJ0KQ9TGVFDI7yGU6i3TGJPd8LNJPtKhX4s
 A+UFe3A9VezOh2VwIqY3I+ZeL2RlJHyRVJ6moqTASFrhZwx8XoCr7IeePjiUBWHTkN1QG9YG4374u
 +mThT/97DG1Nxx1MnbfXc3xTH71PcL+MVFxFbCIN9ulhT5jjAAZ1+bdpJLdakQuWmZlHOVAps9GUl
 YrfnjhNkZoP9ivEkpTprUw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onPR2-0006gw-Ga; Tue, 25 Oct 2022 15:18:00 -0400
Date: Tue, 25 Oct 2022 22:17:50 +0300
Message-Id: <83lep3ogpt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Henrik Ahlgren <pablo@HIDDEN>,
 Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <871qqwhuqy.fsf@HIDDEN> (message from Henrik Ahlgren on
 Tue, 25 Oct 2022 16:56:37 +0300)
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
 <87k04oi6n4.fsf@HIDDEN> <838rl4p2ik.fsf@HIDDEN>
 <871qqwhuqy.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Henrik Ahlgren <pablo@HIDDEN>
> Cc: 43226 <at> debbugs.gnu.org
> Date: Tue, 25 Oct 2022 16:56:37 +0300
> 
> Consider this example that seems to work fine (no cmdproxy involved):
> 
> (let ((start-file-process "eoftest" (get-buffer-create "*eoftest*")
> 			  "ssh" "<hostname>" "cat"))
>   (sit-for 10)
>   (process-send-string sshz "foo")
>   (sit-for 5)
>   (process-send-eof sshz))
> 
> vs this that hangs, leaving cat running forever:
> 
> (let ((default-directory "/sshx:<hostname>:/home/my/git/dir")
>       (sshz start-file-process "eoftest" (get-buffer-create "*eoftest*")
> 			  "cat"))
>   (sit-for 10)
>   (process-send-string sshz "foo")
>   (sit-for 5)
>   (process-send-eof sshz))
> 
> The cat process does not even seem to receive any input ("foo") I trace
> it in the remote machine.

Maybe Michael (CC'ed) can explain how this is supposed to work,
because I don't think I understand.  The actual process run by Emacs
is ssh, not cat, so how is EOF supposed to get to the remote "cat"?

> ps. I wonder why my emails are not appearing in debbugs?

No clue.  Fortunately, Michael also knows about debbugs much more than
I do.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 25 Oct 2022 16:50:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 25 12:50:12 2022
Received: from localhost ([127.0.0.1]:52169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onN80-0006Oz-5d
	for submit <at> debbugs.gnu.org; Tue, 25 Oct 2022 12:50:12 -0400
Received: from mout.gmx.net ([212.227.15.18]:45137)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1onN7x-0006Ol-Uq
 for 43226 <at> debbugs.gnu.org; Tue, 25 Oct 2022 12:50:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1666716600;
 bh=xMz4c9IDgq8JvwIsQ1BL0bZZsRmFnVRDnN6KisJi8gA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=kJ/Yc15sRFhG8ALJdWLAsZei9JZkn1DJPBKvRGqoU0J/HwCXax6q3iSuQEGvIqIqH
 nx5lXUzSUskEWLrcKbmKzd/lMRVJfbT498MXFzmIrBJ06ojtL2DWakyFASZev42ntJ
 qQ28Wmg23cKf6KhRZRGzhuQ/KKgvuq7THLQ86v0A=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.148.109]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mr9Bk-1pSm8k2bsU-00oHke; Tue, 25
 Oct 2022 18:50:00 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Henrik Ahlgren <pablo@HIDDEN>
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
In-Reply-To: <871qqwhuqy.fsf@HIDDEN> (Henrik Ahlgren's message of "Tue, 
 25 Oct 2022 16:56:37 +0300")
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
 <87k04oi6n4.fsf@HIDDEN> <838rl4p2ik.fsf@HIDDEN>
 <871qqwhuqy.fsf@HIDDEN>
Date: Tue, 25 Oct 2022 18:49:59 +0200
Message-ID: <871qqvvoeg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:LSsnJbMFpYkESViDeIT60t/mxni//pRfCwna6E0bQl1ll803c/o
 /5bj08wwSVp4EjDmVFIswU3nc43lvHx1Z+cug/Oc91gHbErs+aPCX50YMPRmaIpre144raD
 QVSO+m6OeU+9nUkyv8meJxvMhotg3TzkfNOaeYnVHBTXAJnot1RxIevEcULX89on6ree4fH
 YyENXBfsoR9PbJHQakiUA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:vwi6tpLo0ow=:LXBwg1jnleaPOeBkBKGzQC
 oK42gUakpZRASeyRCaJvQVTzMpCeUySIKRePzk1aFtrgkTYfH58bpLT5fQl87+cgG1DvtJD1P
 MSXGoTcVyBZlF/0mZHuoIi9ht737c2sfLEm58gSxKM3dE5hDQyllpTNHZ1BhJ6yMsyA/MOLqD
 wVm3DoJfAbuGAodcMW4G6EoyA3w+iwWMknaQ9FYwe4cBNOH/eyQKTRjIIRpPCklszfsZma9C0
 EatsmvTpqCJ9LICgnf1BqkU6sEau/QuYVYG7z62VGsuYV96N8Z36PZyHOjdxjJS+ObrE+vpLu
 uD8Mrf4CgLb4kMqdzZn67UptgV38zhcxkQ0+D70dlpTre4FloC3A6mkiWegMSI08I/pt8jCZR
 881MYM6peXxQeS2UWQE4e9VWxHIafMMnq6kpQUXuJIDrIdsGu6+tl+rDjRWrB1vFeLTnBU7PO
 vh5DsyCL7vNDT7VX15JWsgE0FcAuMxYK0B6LTWyHpJ7yMu56yY35tCR3BGiWbEU6F8Fjgr9ZW
 Chl6s1z53qw7hK4r05GNLx9IqCESFYoSU+C4pYMwsvFuj2WipK3LcJSvE/n8dOWpazUB/jga4
 Vqz1M3TRUv3qxP4Y5HjVmEvkYczvSqsUM41HCDtGNZpulIlHeNxXM6DpUAzxCmYnmO0wDx0bU
 6ercdJyM1hT0BlFDwHk2OV1sKYDnYgAE6SwZJv5XXLG3AC2Mg/B/GhdRr/N3I0HAiC/Bvxb8J
 FgK4iFhmkQd7T8TnBVhNHKG/veNZekSV/87DwAOwwIS2e5pnQ0rGU2+iB/GPSS5rddm0iXNaO
 HjmJxHxWnkvOQLclI2+oMyRHONUuCQ9/G5OSaoDshqlxt2cNLRAeD9eEP9Af34Xt+cFVjOPwg
 ntSwf3SShKd8ep+o3dcAoki9BPP62UOp3ByBKdjBeY5WyYL59F+kVbDNjLZHsuYSmTDpednCD
 0X7Zqp9pSQtzrvH4wbeVigslMpI52Uy2eZ0LwQNTQFroHqXdgrFHri6B/o0B0saQuKakPmrIv
 Ltwc2xss3h1Rn4dPWj1H6B9Nga6Ic8xvkukLL+dabNfZ5bQaDW3aGjv7OhiVzuhk8h42T8VlB
 mbSXwUHVzaFgJxHDOwZMNlYKJWyz/MVHKYkeDEMCVLu5E6Hz4x9EmuAheOHExM3cXdRBrqeqY
 R8GPR3lji9UDnWlEiSHhq1bBlG7TNaghvhNESXotC52yKkMVJJwQeb5bF2oUDZ7b1K4m7UruI
 UgQViOVYuJ313YtQ8QLZO/3u/5V7h8UEVmqlGJkZx3ZYYtMWVgY9YK0YeKaDLii/NUz9Di3si
 o5ReliruTBOaNfq7H/xldFuvfst7Y2XB24QDj/JOWnkN5SMpjXFu4jZd+0q5tWgdKyzNEGqd0
 D1PgaQRLgWWhKgFVp93bdhq+V1oqceFqMZ+XntgG400kVurWxlns5LASuS1RNKNkejlbtamm4
 dPJWgiAaAFeVlXttsDjashlziJNQPOo3w6CR5cOCdg60DC6h1To8cSlV7WmMAM4xP5t2UWOWI
 PZVywFZTqV+UbtfbtWgFn6ZfylgkSsPAHzAZ04A84ebme
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
Cc: Eli Zaretskii <eliz@HIDDEN>, 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Henrik Ahlgren <pablo@HIDDEN> writes:

Hi Henrik,

> ps. I wonder why my emails are not appearing in debbugs?

They are there, after I did approve your messages for the debbugs ML. I
do it one or two times a day, other people do also, but we're not a 24/7 service.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 25 Oct 2022 14:53:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 25 10:53:25 2022
Received: from localhost ([127.0.0.1]:52039 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onLIy-0003Vt-TA
	for submit <at> debbugs.gnu.org; Tue, 25 Oct 2022 10:53:25 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58761)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pablo@HIDDEN>) id 1onKQA-00026r-JY
 for 43226 <at> debbugs.gnu.org; Tue, 25 Oct 2022 09:56:50 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 79C495C0196;
 Tue, 25 Oct 2022 09:56:41 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Tue, 25 Oct 2022 09:56:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seestieto.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1666706201; x=
 1666792601; bh=J3Zen70glQDY/A6rBypgrklx4IkgWdhowkMzneegT4Q=; b=t
 P/K3D4kyTA1nvRQIiTTaTQjGhswZMBUYdDZSEtiEVEfAcRb8EFcCUdTbUXhH1u+Y
 /h8IsA3n4pVdVU10G4KzYv9NAC7I+fZY25FP1+i624QpjaemGMghBP4sxvg/Ww7i
 NSsWba8Rbugsg07WIun6qNSts7wYOQpI7mG7GGEOKi5L3symEhBbbNLUE7oDDWAw
 RSb1xrATJ7yAYvhoJShkQe9x5R1zF7uAZ+P0bQPu7yOQsFrp3RgIXUy43NKnn4if
 BNaTuqFloTjCXQdXgPF+MN/2WVhSpObDICsNkuM67Cy6HVptLOjfo5DxzYiJcI5Y
 8XqeygH5pC3k9CCgm2mtg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1666706201; x=
 1666792601; bh=J3Zen70glQDY/A6rBypgrklx4IkgWdhowkMzneegT4Q=; b=K
 OTArQSAJOVNcbz743kb5tNBVUUUM7oH7v6rFo9Yj4p2p9Z3j7xUtgPu8WVGQES7v
 uuOTmvzHGHFPXmvNiDy3Q4wtjIQvzAsIKxMYMwHGfJiSS1296NnqZOfz+Qbi4nZG
 +lu/kThHwPf/VUVN57TWSTxl+o97KqIjNXZE1GCE73wq+ed2aif5XIoss6uL+qWg
 nvgVyv+5XLH8MZeG7bXQky/HKCoKj34B0hqs4Hcm8EWXV9h0G/0hswLXwKo4C1Zg
 6BQ3LSi0zk+SaWik3ca1J/tS2dZ0oAvIj5I4oHsePPI7KGXfrwRO5SsqVx++suEc
 PJPWPD66LEGwYDIKLxmvg==
X-ME-Sender: <xms:GetXYw2_ad84n97hK5LsCb7mdpt1mmHUMX-4g9BzBv76gy6GfX8I7g>
 <xme:GetXY7Eins86sSjpAn5EYTMUmIMHWkLtJ_68rfNq7DODJdvnxSVcIWyPVYd05c7rM
 ehth0RsO8wM0w>
X-ME-Received: <xmr:GetXY44jDOqT5_xz0V_Fwhcq4V9I6j25FSSzMVVxcmS1DKghWqHMjBu5lME27ozxDBmjHBgYdKPQ6brMd2JZYbL4>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtddtgdegvdcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefhvfevufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepjfgvnhhr
 ihhkucethhhlghhrvghnuceophgrsghlohesshgvvghsthhivghtohdrtghomheqnecugg
 ftrfgrthhtvghrnhepfeekgfdtvdekteeuhffhtdevudfgveelhfevgfekleehteetveej
 gfduiedtieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepphgrsghlohesshgvvghsthhivghtohdrtghomh
X-ME-Proxy: <xmx:GetXY50j6L7o28W_5WnWwTVs1l1cKcu-UoJjDq8aLnuAyZX908XgYA>
 <xmx:GetXYzH81Q-fVBwpPoPSLSeDEc5mP38mzH9kBkDG2XDmzL-ajwBGBg>
 <xmx:GetXYy8Dw3pVLTnWc9CjQzGC1cgEP3YIxjpPPnCvNz1PXxt-YsDh1g>
 <xmx:GetXY5MlE47Sccz4HMy9PEuQG0cE8uSPLOvaVssrJcuxRGf0QtNVDQ>
Feedback-ID: i8ea641e4:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 25 Oct 2022 09:56:40 -0400 (EDT)
From: Henrik Ahlgren <pablo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
 <87k04oi6n4.fsf@HIDDEN> <838rl4p2ik.fsf@HIDDEN>
Date: Tue, 25 Oct 2022 16:56:37 +0300
In-Reply-To: <838rl4p2ik.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 25 Oct
 2022 14:26:59 +0300")
Message-ID: <871qqwhuqy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
X-Mailman-Approved-At: Tue, 25 Oct 2022 10:53:20 -0400
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> I don't know.  If this is about remote Git processes, then
> process-send-eof sends EOF via the network connection, doesn't it?  If
> so, the network-connection implementation of process-send-eof works on
> MS-Windows like it works on any other system: we call 'shutdown'.

Indeed =E2=80=93 when you work with remote git working trees over Tramp and=
 want
to stage individual hunks from the Magit interface, it will run "git
apply -" (with a bunch of extra parameters) and attempts to send the
patches over to standard in. This, unlike staging a whole file (which
simply does "git add <file>"), hangs your whole Emacs session until you
hit C-g.

Consider this example that seems to work fine (no cmdproxy involved):

(let ((start-file-process "eoftest" (get-buffer-create "*eoftest*")
			  "ssh" "<hostname>" "cat"))
  (sit-for 10)
  (process-send-string sshz "foo")
  (sit-for 5)
  (process-send-eof sshz))

vs this that hangs, leaving cat running forever:

(let ((default-directory "/sshx:<hostname>:/home/my/git/dir")
      (sshz start-file-process "eoftest" (get-buffer-create "*eoftest*")
			  "cat"))
  (sit-for 10)
  (process-send-string sshz "foo")
  (sit-for 5)
  (process-send-eof sshz))

The cat process does not even seem to receive any input ("foo") I trace
it in the remote machine.

ps. I wonder why my emails are not appearing in debbugs?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 25 Oct 2022 14:53:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 25 10:53:24 2022
Received: from localhost ([127.0.0.1]:52035 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onLIy-0003Vd-0R
	for submit <at> debbugs.gnu.org; Tue, 25 Oct 2022 10:53:24 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:37215)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pablo@HIDDEN>) id 1onGPY-0005ET-9p
 for 43226 <at> debbugs.gnu.org; Tue, 25 Oct 2022 05:39:53 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id E79F05C01D4;
 Tue, 25 Oct 2022 05:39:46 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Tue, 25 Oct 2022 05:39:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seestieto.com;
 h=cc:cc:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:sender
 :subject:subject:to:to; s=fm3; t=1666690786; x=1666777186; bh=8u
 QtU/nZ0j+8ACbJw1801/6G9dpNKkixXfvygWO3Bho=; b=P6/hTsvTerca0K8TRJ
 kkCwrh3OtwMdDTsRhjrnomv8WzdpS/x3POU6yfj8HTBypdrSVDPrEYYOsGfpt6Nk
 V/D5otSmH0vkbXGA3kO3OThQlT/sulzxC7Cjm4bqIxeBOaG4SJWK00ctbXwkVepR
 t5hW+iA6wqOZ49gp3x92JddrCHICFDgrwzNUSqw43wIYLEKnLcP9+nPw+iTL7Gdu
 3HfT9vbBqCmtZYUxMNKbdeV/c2OLGCgIKb8jdayW1LnXEIfPG1ZNPlWE15YCfD7y
 2SbnUkXYj4mlQt353SrujxBlxgLh77V1hHZTaWZhDLS8CFHQej/8ZpeoHK5MWIFg
 txTw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1666690786; x=1666777186; bh=8uQtU/nZ0j+8ACbJw1801/6G9dpN
 KkixXfvygWO3Bho=; b=dw/rXe+TlmLfgbek+xjK4Su+xDvGOFGHhBKr3v0dDgUS
 QNDb2A+8WuekP/VUjNwSMh8gxEGFoEI2iXjsg+chFwj7ZvLhzW7RqeyYFvLy/Ftt
 +3OUuDD5QFUA5PgBpMLRA1ImnT2CGVKypD22Os8eJYSYoi9Mlsm+fvA0OeHCmldk
 tD3lVrTNaTn3yDTrXNRbA+JVWMDciGvGCrdAyV5FuTs/2KT36mqa1UEAQdzzyBpD
 /NrVY4gdAfLN6wljsCllb9PoKAN9LdVl3owA5QtV8TXFJhSVQeNGcYcSqkNeAICL
 hm5mI6LGWUMUsfHiwgZ4o1eP7vCiBayG4PNJnP72wQ==
X-ME-Sender: <xms:4q5XYxWse7NLYm0pB94cxSIRUSNL1zqhqIGeCPIQe3FuZn_9sduzPQ>
 <xme:4q5XYxk_lampplLtlfb3AlbEU6LQ_IyyOhebnFnPmRDQIXE4pCUtGa7ytZ5nwxwCE
 kRyL-SEbFtMVQ>
X-ME-Received: <xmr:4q5XY9arqBvHK7tmyfdvqm_wLlzt5SqmJ8ITfetw5t8eq_EH-LWkM791Xu2H46QCZbsHzTJpDOv_LLvglevOJw77>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtiedgudekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvvefufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepjfgvnhhr
 ihhkucethhhlghhrvghnuceophgrsghlohesshgvvghsthhivghtohdrtghomheqnecugg
 ftrfgrthhtvghrnhepvedufeeijeeigeetgeeufeeileeutdffvdfgffekkefgfffhhedu
 tdfftdejjeehnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghruf
 hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprggslhhosehsvggvshhtihgv
 thhordgtohhm
X-ME-Proxy: <xmx:4q5XY0XaXpO1WDrMeNsSucfaK4f5Pakyz8iJ8-JobfnJnwJt4ik3Fw>
 <xmx:4q5XY7mxXEFDHueCQmhQWswcq6GxQBzINzIBLdWAII7QjB5qJvsvqw>
 <xmx:4q5XYxd-luHuIWpZJ0EDhEDLvJaroZjblb6Gixiv_DCUZgGBiFo7DA>
 <xmx:4q5XYzsJG2vUwPbb40WPNG-xUBe8T1zcENNCQeJ4WgEmREK1DRWomA>
Feedback-ID: i8ea641e4:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 25 Oct 2022 05:39:46 -0400 (EDT)
From: Henrik Ahlgren <pablo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
Date: Tue, 25 Oct 2022 12:39:43 +0300
In-Reply-To: <83d02yopm1.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 06 Sep
 2020 19:07:50 +0300")
Message-ID: <87k04oi6n4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
X-Mailman-Approved-At: Tue, 25 Oct 2022 10:53:20 -0400
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Could this be related to this rather annoying issue with Magit on
Windows?

https://github.com/magit/magit/issues/3624

BTW, the hang happens not only with Plink, but also with ssh.exe (the
built-in OpenSSH in Windows).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 25 Oct 2022 11:27:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 25 07:27:27 2022
Received: from localhost ([127.0.0.1]:50561 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1onI5f-0001yf-Ke
	for submit <at> debbugs.gnu.org; Tue, 25 Oct 2022 07:27:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1onI5b-0001yQ-RG
 for 43226 <at> debbugs.gnu.org; Tue, 25 Oct 2022 07:27:24 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onI5Q-0005Ha-Rz; Tue, 25 Oct 2022 07:27:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=2GX2J60Sg3Y8dQEG0YQBf6G4ugt5YBm7ZMjQNEEgPjM=; b=quLeSYh+eLV1
 YyEYCUFD/GHN/bYHA6DcaCWRZgQo9TXEGs9HV3TqMA4zpPN/R3EU74lF21z71wSSdHPo2HQE4WPPu
 nslHYkferpyVGvRaCvAnJyjnVh1MTKzoij7DEMEHB391WRJPPh85lu5h62qohwjBTh8NMVPXqDA9S
 GCJKc7GZc165lydF+3Wk2Ap3TvKc8Pdi0B8JgrJhghK9MRylcEp228sKJskAK0PGiA/+fqQTf2oAb
 wcQOessfusHfi84lr5AtRwtIe9uOAphXYNojLT2C23h4goy95jFYtgaxR0mgQ9xMD9bM/DeFGOlYZ
 d8jc5RVz1Eh44lRHduo5xA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1onI5O-0003nH-TQ; Tue, 25 Oct 2022 07:27:12 -0400
Date: Tue, 25 Oct 2022 14:26:59 +0300
Message-Id: <838rl4p2ik.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Henrik Ahlgren <pablo@HIDDEN>
In-Reply-To: <87k04oi6n4.fsf@HIDDEN> (message from Henrik Ahlgren on
 Tue, 25 Oct 2022 12:39:43 +0300)
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
 <87lfhmzyr8.fsf@HIDDEN> <83d02yopm1.fsf@HIDDEN>
 <87k04oi6n4.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Henrik Ahlgren <pablo@HIDDEN>
> Cc: 43226 <at> debbugs.gnu.org
> Date: Tue, 25 Oct 2022 12:39:43 +0300
> 
> Could this be related to this rather annoying issue with Magit on
> Windows?
> 
> https://github.com/magit/magit/issues/3624
> 
> BTW, the hang happens not only with Plink, but also with ssh.exe (the
> built-in OpenSSH in Windows).

I don't know.  If this is about remote Git processes, then
process-send-eof sends EOF via the network connection, doesn't it?  If
so, the network-connection implementation of process-send-eof works on
MS-Windows like it works on any other system: we call 'shutdown'.

If in this scenario we try to send EOF to a local process running on
Windows, then we close the file descriptor, like we do on other
systems.  Why would that not work?

Bottom line: I have no idea what's going on there, sorry.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 6 Sep 2020 16:08:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 06 12:08:03 2020
Received: from localhost ([127.0.0.1]:46917 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kExD0-0005un-RV
	for submit <at> debbugs.gnu.org; Sun, 06 Sep 2020 12:08:03 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59234)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kExCy-0005uJ-Ns
 for 43226 <at> debbugs.gnu.org; Sun, 06 Sep 2020 12:08:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52192)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1kExCt-0006YG-FX; Sun, 06 Sep 2020 12:07:55 -0400
Received: from [176.228.60.248] (port=4776 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1kExCs-0004Sj-Sj; Sun, 06 Sep 2020 12:07:55 -0400
Date: Sun, 06 Sep 2020 19:07:50 +0300
Message-Id: <83d02yopm1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <87lfhmzyr8.fsf@HIDDEN> (message from Michael Albinus on Sun, 06
 Sep 2020 17:54:51 +0200)
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN> <87lfhmzyr8.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: 43226 <at> debbugs.gnu.org
> Date: Sun, 06 Sep 2020 17:54:51 +0200
> 
> > Just to be sure I test this correctly: after installing the change and
> > compiling tramp-cmds.el, I run the test tramp-test30-make-process
> > twice.  What I see after the first run is that 2 'cat' processes (each
> > one with 2 sshd) and one /bin/sh process (with 2 sshd processes of its
> > own) are left behind.  After the second run, I see 4 'cat' processes
> > (each one with 2 sshd) and the same single /bin/sh process with its 2
> > sshd processes.  Thus my conclusion is that sending EOF to the
> > processes doesn't help.
> 
> Yes, this is right. I have no idea how else we could kill the remote
> processes, prior killing the local plink.

I think at this point we need some expert on TCP connections to chime
in.  AFAIU, your hypothesis is that the way we kill network processes
on MS-Windows somehow fails to send SIGHUP to the other end of the
connection?  I'm not sure how this could happen, since I think Windows
sockets are a more-or-less faithful emulation of sockets.

Or maybe you (or someone else) could describe in detail how the
deletion of the network-connection process is supposed to shut down
the processes on the other end of the connection?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 6 Sep 2020 15:55:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 06 11:55:01 2020
Received: from localhost ([127.0.0.1]:46891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEx0O-0005aX-Sx
	for submit <at> debbugs.gnu.org; Sun, 06 Sep 2020 11:55:01 -0400
Received: from mout.gmx.net ([212.227.15.19]:50085)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1kEx0N-0005aI-Cy
 for 43226 <at> debbugs.gnu.org; Sun, 06 Sep 2020 11:55:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1599407693;
 bh=3Y2al7aK4Gpkj08vuQgK+71Vxcv54RwC+mshjkjatpo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=SG0565yRv4TwCrx5yd7TzqyYQDg8zHpYkSY96t5mnJ8WR2Cgqnhsm8nKArZxvzL7Y
 Xqw8obfTo9dXurcx9sK5OvaZ63SxOfWlwaiAquL779KkU52ugf0kQoTxn8Y/634MUy
 RGHuQlgQtYsuXCcqZKKJgbHkWdsiEystmkL8CnkU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([79.140.119.217]) by mail.gmx.com (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M72sP-1kBwjS0Bzj-008ZNT; Sun, 06
 Sep 2020 17:54:53 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
 <87eenfthlc.fsf@HIDDEN> <83h7sbndi4.fsf@HIDDEN>
Date: Sun, 06 Sep 2020 17:54:51 +0200
In-Reply-To: <83h7sbndi4.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 06 Sep
 2020 18:14:43 +0300")
Message-ID: <87lfhmzyr8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:Z+b6ILi+CrIp5X748InRVhJYI64T5xEQpfhcDg9OTBjNSSqnmSJ
 yDVBIbI5aYjVQGBLO/esPWF7WZMh4NpRHQW1oY6KHOpHvfzwYjlSI8wze6+oCMG+Lv5qkfv
 x8ObGa8RsvhTKZCqDQRken2J73XivuaAb/TbGL4yJM6wYSr0zwABlqFUVp8Drdd47mgchNM
 VAURen5vBiIGNYm1FuGxQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:OM7AzfBr7fk=:Z0lqhZOk4w5k8xcwd12ulC
 AIImAppT3z3oG0O9vrPzSqpMZAYxAAJ3wpmNrXDLRwOy7RjHTUlH6omPvhijygvXCtKExDd3f
 jzp/1mr2Pb9DmVvjjBbgYCqMpBJlMkNkJYlS60wlThWBY25hTGKHKASaHk7/WdqOkBhL5KU7H
 W6AFk4nQWISZjZO/YGq63AVDtrVhk0JaPbSY7JkvubB1HLXntmXGCe/i1nMccfBbwYKW40ifE
 /x/JsuyJ6JWcPuXxZGwO/k5GuWzIjyN1haNOIdXRLUxNe771MNSRlLo018YRomqxj1K3TzB0i
 1h3z8GL9YwpXfMjFCThmrF8frWCdZBErFySrH3qgxpCphHbYuyFtNqgh6X5Y7/O5Y7QzEPtde
 J/fUKNhwcnVrsG2MWB7MiZ/l96Cil/s/ULdlyb2yXeVO0C4VuekZynWEzyEstUOYHX6tb/P6s
 aLl5m/t2lR1pIhifnHPLOrioWvuKS4psh0HR7Kg0kLRTr3DdrniAKP1OZ7014Nl2ebtroSYfn
 1AjRDq2RR9IDyfZxOrOiCGG1ha59J1SXkNlZFSSVFVkB45ZypcvykU1eUuTzGCNp0kaqdpZlk
 jCLqnGbpNwQtHaPJRI52o76OLFGimxinckdMI9op0TKLwG6pFQWyODHBbYrnoIYtNxV4yujfF
 dGYQ5wiKpBT2ca0xpA0Eu6K7yN4Hy+M8OAYksApW+6WR6nXmiwNwWCIB6ZD/kKikroJ91B1Wf
 mBe6jWBxlvPTUkUNjTOOvdAsJVjeTIe3kf9sI1/yMd5Ug1/3vVHsiZAN7DPx/AxPr3k5YKy4y
 s6qgPHCjNp8SK9um1QYZHI9NCMaDZWCiO5foGMJj3XOrhw13cjgI6NjM9VlW5XZG/7FWcIyob
 vk6vHsaQsTWjgvXB3cYui0nEQGXDMI+skPICTAlnFmlIeyktvPJoTksMtJBlHA2ViCZQMgYm1
 F25EJ/tnj3vLz2RjzvlS190bOU2meiykhSmMYjd7WDPHHF9qK+5UH5I6kvn1jaDG6YFigwXVP
 w0SwSXBgNQ5NKOXYbZoy/VD3zAe5nC0qo3DcVlCZBtNIw1kQVaKFPJXeE2aNcXBiPqalkU5Dc
 25IaGlMOrhoUSN4+qA8V8v+jWgEeG+K4NZSClnBiy3bYVtNL5jQUhkyhO4jejOZozZ0R2B/U3
 9wqlhKaJUOuyTOjVEjvRY76B77q6XxY3EF9J8NWivb8ntymYKPZlx2snv+L2aY+f9qEWflRlW
 XJ1QI9XsIyy3jBrJQW+dPKyIFMJ2VwvAQ1DeNUQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

> Just to be sure I test this correctly: after installing the change and
> compiling tramp-cmds.el, I run the test tramp-test30-make-process
> twice.  What I see after the first run is that 2 'cat' processes (each
> one with 2 sshd) and one /bin/sh process (with 2 sshd processes of its
> own) are left behind.  After the second run, I see 4 'cat' processes
> (each one with 2 sshd) and the same single /bin/sh process with its 2
> sshd processes.  Thus my conclusion is that sending EOF to the
> processes doesn't help.

Yes, this is right. I have no idea how else we could kill the remote
processes, prior killing the local plink.

We could send the "exit" command. But the idea of
tramp-cleanup-connection is to unblock a remote connection. Sending just
another command doesn't sound like TRT.

> Thanks.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 6 Sep 2020 15:14:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 06 11:14:55 2020
Received: from localhost ([127.0.0.1]:46832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEwNb-0004ah-Kg
	for submit <at> debbugs.gnu.org; Sun, 06 Sep 2020 11:14:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50208)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kEwNa-0004aV-Oi
 for 43226 <at> debbugs.gnu.org; Sun, 06 Sep 2020 11:14:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51656)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1kEwNV-00007k-IU; Sun, 06 Sep 2020 11:14:49 -0400
Received: from [176.228.60.248] (port=1511 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1kEwNU-0002bP-JH; Sun, 06 Sep 2020 11:14:49 -0400
Date: Sun, 06 Sep 2020 18:14:43 +0300
Message-Id: <83h7sbndi4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <87eenfthlc.fsf@HIDDEN> (message from Michael Albinus on Sun, 06
 Sep 2020 10:49:51 +0200)
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN> <87eenfthlc.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: 43226 <at> debbugs.gnu.org
> Date: Sun, 06 Sep 2020 10:49:51 +0200
> 
> Does the appended patch makes a difference?

I'm afraid it doesn't.

Just to be sure I test this correctly: after installing the change and
compiling tramp-cmds.el, I run the test tramp-test30-make-process
twice.  What I see after the first run is that 2 'cat' processes (each
one with 2 sshd) and one /bin/sh process (with 2 sshd processes of its
own) are left behind.  After the second run, I see 4 'cat' processes
(each one with 2 sshd) and the same single /bin/sh process with its 2
sshd processes.  Thus my conclusion is that sending EOF to the
processes doesn't help.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 6 Sep 2020 08:50:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 06 04:50:01 2020
Received: from localhost ([127.0.0.1]:44778 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEqN7-0002xZ-1O
	for submit <at> debbugs.gnu.org; Sun, 06 Sep 2020 04:50:01 -0400
Received: from mout.gmx.net ([212.227.17.21]:38915)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1kEqN4-0002xL-VY
 for 43226 <at> debbugs.gnu.org; Sun, 06 Sep 2020 04:49:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1599382192;
 bh=zPHsZaKDrThiSVIHkPeH35PG/ANIZEec1mc1MkAOMcI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=gi9UXUnTRuaZN+5Y4laNAl7k2CZxkGnSqJ+izZ7M1VZEKNoW3c42FS8tL77a6CbrK
 rqhDKUoiN4d5tRxN0FPGIAiT7lXxdfP4xFW8glzGS5YS59LVcDfNgoOgQZY682EloE
 n/MHAvmcnZJTVhO04JQW24d/fHGSiXWDOr1lusHw=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([79.140.119.217]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M59C8-1kDkRQ2cAG-001ABn; Sun, 06
 Sep 2020 10:49:52 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN> <83v9gsnhzj.fsf@HIDDEN>
Date: Sun, 06 Sep 2020 10:49:51 +0200
In-Reply-To: <83v9gsnhzj.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 05 Sep
 2020 22:25:36 +0300")
Message-ID: <87eenfthlc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:E8WlEmnOpLj39kNFjLyMXs/z8eVmT/k/RxlvzYhoXnpkq36oZpO
 BGHwYmFlRAOMg1hV1PQQYbuBcikztfCGxlLZTJHrRSQ34heiP9wzOmfqc/bT6x+VKyNHi8h
 zqm6CjNrk6rfelZvCJCuomdoJWjZxbuJ4Ok2MC6v3bQeAlWX7p31HDhKbvVjpwNa7z8CeBb
 mB1ltd7MGxW5fzR5J4MGQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:LiEpzHejqnM=:dSc6WHGHTFyfPbYvtC3/8k
 2diIzhclPQYDHMUFVatWVMCjO3nBuzHmPTiQCB8Hbap2iH4c++k4ohcOev8cWkKW7TzcMv0a1
 x7OkDbz+ZRdkTu9jaS1Iy/wJBI8xPWHd3WpRJRX0tK09mBQb0jfL3+DAOaL/4PTta6T9MD6QK
 InZEanNDjEOrywLv2pFbuycnHBSGjRH91K06O/RQnS98E02Dya8Ube7vlAL/rQfpUJlR7HLQZ
 xcCL0UDCeh5nUL2O2qshOrC8wvo8J0jQCeNW6M2Kz/YzMOebB3BShieGzo0h2iIFbMKLHtaKf
 nQA29SZzXsA0X0TjloA7Zn4ykyNNU6228VerWJrcjBgzKFTPM/eW3S7AKbEAqxAVK353FT3Tc
 ugLYvaTNnR+5KKSuIvCwzEKO+D9wlxecOwG02qbt7Ez4EFnBiowDfLgDkMtygn46VyrCKHezn
 UenKG+1dvi4Be5KtyiYquyZmT3ML00nN2ZJcsFo1RRovcIyBPuzwxbjC6EAwH4ynd0XfD1hWi
 KJ9Z8CJrp2NLHa4mIeCGlHtvoLkigJfGQvGQHFgfol6qFx3xUqNRYjDrvzZIRZV8soQ8ZmBbm
 A6qZrEZEpp3aI6vCRAeOYc6UKTt9YyOF55lil9InxrIMQl1lohYr4kc3ffT5rmIZ197n1QDKF
 oCDrwc58loxbAunFEU8i7zhQV4cwECf+d0sMjbHEVs6jxGGbukRbLnLP9m+lpE+DwH3N+7x46
 ibDwsyLeevZNlklMcrdRQrHcDuNc7tXmoRdHn2bFDcAsZAXtTOlEUmaKSx02cZdb87KCeWLoV
 vFinSEHpn81WRuxvNvUDf3ANerX/xffhbmODB8Z4honI9akLsbnc9mL+YExQDp7ELKxGD4Sdc
 R+Bc8fohZvp0gNAK31ZWpEA05ERDzds6J0f287NPAg/SkcL3EIvXX2qnCzPUVDz1FMbIyLLJT
 X/tqbTrW9M6FsRXtGzvVaBBikPR3mm4tmGgZfA1saGQD1iXRDJJBfEEj/mhDlBnaFlFEvLHrV
 Ss37ASkGWMWaTUA6N8LdjHbNVjkBKE0P/Zxd64rv81LoWdfSnM7HN4WgE/JpCpcw/y97+jZ5X
 /FTVxahjy2lwfO2HXbOiZtFPiwCC6kzczA6PXdXoIyC6Ol6Np+ly/DS5/elqj9UNyIdwIehov
 9bzxxACLxx1BM/6fWmTSYbLAqcU3DemWDWSKvFwvQ6dkwWXWNQzWX7HaMcgvad8WeH4qE72Bh
 HONm0nPBCmXaSOF05TR2yVxjlgvWD63n9sE+jxg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

>> Maybe it has nothing to do with the local OS but with the local
>> program? On GNU/Linux we use ssh, on MS Windows we use plink.
>
> Maybe so, but what do we expect from ssh/plink which should happen
> when the connection closes, that might not happen with plink?
>
> E.g., if I run 'plink ... "cat foo"', the processes created on the
> remote disappear immediately as soon as 'cat' finishes its job.  Same
> if I log in and type Ctrl-D, or just close the window where plink runs
> interactively.  What is different about the connections made by Tramp
> or the test suite?

The difference is, that in your example the remote process finishes. In
Tramp, the local ssh or plink process is killed.

Does the appended patch makes a difference?

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Transfer-Encoding: quoted-printable

*** /tmp/ediffJtV3Wc	2020-09-06 10:45:52.531153450 +0200
=2D-- /home/albinus/src/tramp/lisp/tramp-cmds.el	2020-09-06 10:44:50.95683=
6536 +0200
***************
*** 122,127 ****
=2D-- 122,128 ----
  		 (or (not keep-processes)
  		     (eq key (tramp-get-process vec))))
  	(tramp-flush-connection-properties key)
+ 	(process-send-eof key)
  	(delete-process key)))

      ;; Remove buffers.
***************
*** 186,192 ****

    ;; Remove processes and buffers.
    (dolist (name (tramp-list-tramp-buffers))
!     (when (processp (get-buffer-process name)) (delete-process name))
      (when (bufferp (get-buffer name)) (kill-buffer name)))

    ;; The end.
=2D-- 187,195 ----

    ;; Remove processes and buffers.
    (dolist (name (tramp-list-tramp-buffers))
!     (when (processp (get-buffer-process name))
!       (process-send-eof name)
!       (delete-process name))
      (when (bufferp (get-buffer name)) (kill-buffer name)))

    ;; The end.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 5 Sep 2020 19:25:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 05 15:25:52 2020
Received: from localhost ([127.0.0.1]:44101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEdot-0001kK-Up
	for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:25:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37724)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kEdos-0001k7-DA
 for 43226 <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:25:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38527)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1kEdon-0003r0-6O; Sat, 05 Sep 2020 15:25:45 -0400
Received: from [176.228.60.248] (port=4616 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1kEdom-0002Og-Iy; Sat, 05 Sep 2020 15:25:45 -0400
Date: Sat, 05 Sep 2020 22:25:36 +0300
Message-Id: <83v9gsnhzj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <87imcst4om.fsf_-_@HIDDEN> (message from Michael Albinus on Sat, 
 05 Sep 2020 21:16:25 +0200)
Subject: Re: bug#43226: 28.0.50;
 Running Tramp tests on MS-Windows leaves zombie processes on the
 remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
 <87imcst4om.fsf_-_@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43226
Cc: 43226 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Date: Sat, 05 Sep 2020 21:16:25 +0200
> 
> > Indeed, it's strange that the result should depend on the local
> > system, since the commands sent to the remote are the same in boths
> > cases, I'd imagine.
> 
> Maybe it has nothing to do with the local OS but with the local
> program? On GNU/Linux we use ssh, on MS Windows we use plink.

Maybe so, but what do we expect from ssh/plink which should happen
when the connection closes, that might not happen with plink?

E.g., if I run 'plink ... "cat foo"', the processes created on the
remote disappear immediately as soon as 'cat' finishes its job.  Same
if I log in and type Ctrl-D, or just close the window where plink runs
interactively.  What is different about the connections made by Tramp
or the test suite?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 5 Sep 2020 19:16:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 05 15:16:35 2020
Received: from localhost ([127.0.0.1]:44084 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEdfv-0001Wm-9A
	for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:16:35 -0400
Received: from mout.gmx.net ([212.227.15.19]:34223)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1kEdft-0001WY-2b
 for 43226 <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:16:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1599333386;
 bh=n+GwiJCvzlssXH6JD/wGqQF7Gq2eAtN657b83N1UFno=;
 h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To;
 b=lyJXgfBsPqn5KUvR1oTUIuTsr66mYV6Rs9iu5QgppurcWEurhh2D+e6nN4HHfuM/G
 epOD3E9qsodMSCdlvjzQdzkL2O2kJZYJi9ABPNs1mm26EnUNvTovsc6/+3GKPfptRA
 Ln1IZnBbFi3c5YmgRBZFr/v7O3MKS6Z9ijy4PyEo=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([212.91.243.3]) by mail.gmx.com (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1psI-1kGqaw2TuK-002JR6 for
 <43226 <at> debbugs.gnu.org>; Sat, 05 Sep 2020 21:16:26 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: 43226 <at> debbugs.gnu.org
Subject: Re: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves
 zombie processes on the remote
References: <83363wp4ak.fsf@HIDDEN> <87mu24t57t.fsf@HIDDEN>
Date: Sat, 05 Sep 2020 21:16:25 +0200
In-Reply-To: <87mu24t57t.fsf@HIDDEN> (Michael Albinus's message of "Sat, 05
 Sep 2020 21:04:54 +0200")
Message-ID: <87imcst4om.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:V/ULLEcp1tFpI2e4f61m2uGEeXH66Oo4W9bnXcK3blqtvXKY4AM
 f6jLQXgxa8PAzbrPiYorPYUcizixG4pWhAs50QYOSy72e3DUwp0lkNzFrNly3/0g+7jZGXZ
 UCpy4lGTlCIuRqT6aFYmQ4zzRrEU1vtdg+z5dgJHX5Q7E4ady+qC432ih8U2MRmYcT+qwyR
 TYY5WJWMZ0M0XsBUoPsqQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:B+5TP3nLf7k=:ieqKiD9+RablGha8f25jQJ
 hlBGtjKj2XQoHSdjKGmWaj7zOe0qrbY1OpVpBWVgQP88KlFffzwEAfq8slEBS3MurlJeIbsyr
 CyTPfMF9LF0leYi4TXkNBS1GdMeHTUImNiBB48+B/Cpc5UszLarrWeMDUQLYNGuq6T8lkw+Ke
 PtorxJlyvBXzZtiwNYa7wmXdyfoFeMYFv0MqiXGvQ//gvQimO5Vv6vWAb1iYQyEL/v1JuVKbV
 p4/2xGvF1UgYxVbB38r7eElfTDKzjyqkwh1LY9z4YHoAL7mkpzLQKcf1zEhGE4aptAZmOFWWy
 GWJCXF3VbIRV9o+B+Dqllnih0nbGqV++7fEvCnmvj/oU8HR4evPIVx6Z5fmKve9rl5Pp94aSf
 HRJWd26M/LNC8vX+/QWURYrdUmXdRfYrN31F5Bhslx58IlSeZXLzSjP6z9jojC0EtPgXYaR+7
 2U4VHCAhlQ0U6X2gsb1MT9C7bmzZpkzq9vbGz8Pmox8jNKOJfw882NHPNqqM0A5wmIyr37DbB
 XgBGe4DLkwq2YVz+bR+VsVD6HjjMpBzm5wvunZq5ijKVzSgYbNP2IEPs0i6jgJh7w8QxEmoN6
 /iYlCcizG4+WDc0CgPLfofC/z9pwK0jHflf4Rmm32rjHN310Ma6334hdgSq31q9tPQC6BhRK7
 CcauAAED5j8NveuyJ+D8z/7kK+r5uLN1eCI9ECWjrTLbh5BcDLG7w+vmWdw7FmwoNwpXeiDRI
 VoPVutAOoMxdBB+LFylRNlVR3zlLvWz8ejLHIgq0b4ele+scgzKFzHs2ytI65HPbZHv81B/a8
 h7/K26oU16Em84E9ZhkeUcmV2OYMiUQ2bXcDOoFZ+uhfCeju8uC7uHaQkhyMC+dW2tFeCVjWd
 3wvksqtrqEy5+gSlmp6n2SodE0i+h7sID56h2EJ8V0qcl8bGf74hkuTcFGzIDpV5w9HZltkR4
 yPu2yrNVL4qP5M7SGEkpcSIEF3PoPtmY74n+nIjZ9Bv3/2j6CInoAkiLAIaK7SG0K2bhpDsud
 WIEn+bsbFeUBORUyYr9hR5/MAjkTnoydrI5HsNVUWYC3HGzzPjB1l5Jpke6Ky9dn/oxclGJ7z
 EFs8MMiHq4VD9OT+P94ZunKC3T/2IxZrEAsD3XSdoD6mfDG4PDnxyz0rNEhTeH32f3BEmhTED
 E+7ayEKi3JLK+QrZBkyIdKcu0EoyeqVNapGoPqf2ewKl6oiYDBiJB9a193JU7iHDvP8MrX5af
 YIMNcFJM5TSXEj3Wn/M6GO/s+6EBrfmcjsFqErg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Eli,

>> > AFAICS, tramp-cleanup-connection deletes the network connection
>> > processes, but is that supposed to make sure the other side of the
>> > connection exits cleanly?
>>
>> It does at least when you're on GNU/Linux. What happens on MS Windows is
>> beyond my knowledge.
>
> Indeed, it's strange that the result should depend on the local
> system, since the commands sent to the remote are the same in boths
> cases, I'd imagine.

Maybe it has nothing to do with the local OS but with the local
program? On GNU/Linux we use ssh, on MS Windows we use plink.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 5 Sep 2020 19:05:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 05 15:05:03 2020
Received: from localhost ([127.0.0.1]:44078 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEdUl-0001GV-2f
	for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:05:03 -0400
Received: from mout.gmx.net ([212.227.17.22]:51867)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1kEdUi-0001Ft-J6
 for 43226 <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:05:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1599332695;
 bh=Iyu7rw2g4+2MhsHzg8BlV8lwMz1g5qX1AOW+8ltuD3A=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=JqQXUNQsKn8VPBcdoCyEhVGRExybuqbVINN5AkF93tQ5JMDtHWxhsy5CIW+gFuOs5
 pSmdJ/bvwX07LnLUV3WrINa6dZjZjbzoARyeE0MKymioyDwoyL77oLpC0low4cxIsE
 yXWOonli74AWcYKqTgqbyvmTFbU4xm5AURptnGAs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([212.91.243.3]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mw9QC-1kX8JW3mjs-00sAAf for
 <43226 <at> debbugs.gnu.org>; Sat, 05 Sep 2020 21:04:55 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: 43226 <at> debbugs.gnu.org
Subject: Fwd: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP
Date: Sat, 05 Sep 2020 21:04:54 +0200
Message-ID: <87mu24t57t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: message/rfc822
Content-Disposition: inline
X-Provags-ID: V03:K1:zpCQIM0/SahEGG9R3CP/TZLRxOYGr6VTUBD/JJ8e2BaesxuyuXD
 /kLEi9D6bvm+0o5ORAYwnIa/pDvCoaem9mq1HxxS9NoFAM4aAOa5lPc7znQrkma/Oe1dikP
 tqpGTlMMYLqShUq/sf3yx+RIVXYUO/s990RdKKFNqE3ARyxr05ApaTz3aLw4aixp//1J7hv
 fVrVjNExyPrsL49sskNFw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:g5W/5d5el6s=:CKwI0VAk9OG37QLWN6RyTC
 PCH+j5OLS8B6r4Xs5qiDeF+wyXp7eza56mcxugnIZ+npQnuBVzDFqoKErhY26KHUIbyhzPRuW
 Ckhh42kvsVlBUhhmO/mSlS4JrWgxytNVvkU2ny9gDNaEulpXdIqlKcgHtsqlvGfjKRlAO6O8o
 8hFd4J9Ns88N1M7el7Unq40oo+AsoDKlKvckhZKtD4iPQ1UKzlDIrIBEDke0xZPDqZP5sHiz2
 9bnkAjqGr7ai5MQWXfGB5Xr866Hs6O0LlBAEGSTd5e4vHqkxm79n5cq0LUd88oJlXNMkih46v
 T8wCOGI19WTmJmibDmlZkbIyXwfqeRbxdbcfppH4GksKJapXOMSyZZXtSikoSm2Mv/HgOI0GR
 qqFlWBeGyhToT5IZwUEsDrJMdZk+rqm7VZceaQXdbi+Dw1z/0TlP7E8e8ThWJemmE64gvH0sp
 v7ob/PgDZzvzsFs7TLBYE9PhW+0SYkX7txbijISNeZRY6V1wqBiry5X/Jdn1CMLOsX12ZEcTb
 UhoiqUfezx2Ce0YjkOFZ50STzijuPkC5vL6unmxD1hCSyz5N0EodgndtHxJpbm93iwFb/5l2f
 Yh0JKWgTCxRl/Lf+CcF6Vj9UlW1QkKgEpshS12Pb36508wmvB4aVjMr6eQxYGR6NkgqSTGJhh
 pGR2q1J2sF11v7kFUVbZeoPAJUKAcQTaIA2wXBUCQ1xd9nX6ZakGjIwq4I27nI82ai5KtOUKL
 W3xRg1vOLrrR5ul7a5uaDUmzavdXue5sy2n/LYbUFErFjKECU6jLZqvudWeqlyY+0KHEBD8n0
 5sP1YvHdEK1Tnq3RKUryd702kPu2K5Ry1BAI4ErYdiZsApz3FQWdVfZHMp02NpS4QpR5o3npK
 sPTtbN07MrWK6Z1cDhXsKY8IXkPC4+y/u0N+fm0RVL80GDq1DYVgeqoDp+rwuCIaO8HmlAFka
 u1rn1DnCHaAqc2mgf0GX44saclYfDrSCD+mQBdQWV+x8LiULC1y5U6fpZHRa/LZIAoKzwGXC+
 31gW+uyQmWHXt1AfQIGKesavc4xgNA8vyF34nkm4lT7hmRlpovJhHRfkhBmvY/2iPswhcpU/g
 zXqzJKowqhVXFxT77sZNxlCbz5hqqgtpUJ/j+YWlh8wBfNVaAGNjGvwF+3OIsPzFBb4Oshv8n
 I0y3P6IrzDG4VpTwHn+kCAyWfizA6oEkjWZ6fY1WfBSTn+C8OmPt3mdwkFDDOcveqyRQPu9FF
 1g6+1YU8e4O125PPsNz0HkmBtkVblmaqvrwcwew==
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 43226
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Date: Sat, 05 Sep 2020 20:56:00 +0300
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Cc: 26911 <at> debbugs.gnu.org, mattiase@HIDDEN, eggert@HIDDEN,
	yegortimoshenko@HIDDEN
Subject: Re: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: 26911 <at> debbugs.gnu.org,  mattiase@HIDDEN,  eggert@HIDDEN,
>   yegortimoshenko@HIDDEN
> Date: Sat, 05 Sep 2020 19:36:34 +0200
>
> > AFAICS, tramp-cleanup-connection deletes the network connection
> > processes, but is that supposed to make sure the other side of the
> > connection exits cleanly?
>
> It does at least when you're on GNU/Linux. What happens on MS Windows is
> beyond my knowledge.

Indeed, it's strange that the result should depend on the local
system, since the commands sent to the remote are the same in boths
cases, I'd imagine.

> Perhaps I'll call process-send-eof prior killing the process?

If you show me a patch, I can try it.  But let's continue discussing
this in the bug I filed, bug#43226.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at 43226 <at> debbugs.gnu.org:


Received: (at 43226) by debbugs.gnu.org; 5 Sep 2020 19:04:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 05 15:04:46 2020
Received: from localhost ([127.0.0.1]:44073 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEdUT-0001FX-PZ
	for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:04:46 -0400
Received: from mout.gmx.net ([212.227.17.22]:45727)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1kEdUR-0001FC-Bn
 for 43226 <at> debbugs.gnu.org; Sat, 05 Sep 2020 15:04:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1599332677;
 bh=/sU9vDsMbqwbiM0EzVcUie4axjv+rpG+uu6pEhvAVAg=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=kNwWgnkQncUknA92eU61PLxrBSnrme8NQON6xPZ87tOKuW8e/2HrRxzxygyzuK88U
 lOnmnEABvB2kdzOL4gbznsQu2GYW4AbwDiIc6y52G0WXF3NlIsJURc2Cmjk8aY576u
 kjDsHoUT415UaX377AU4/x69jOa8rpuGMzazZmLA=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([212.91.243.3]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M72sJ-1kCk5D3ywx-008Yrj for
 <43226 <at> debbugs.gnu.org>; Sat, 05 Sep 2020 21:04:37 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: 43226 <at> debbugs.gnu.org
Subject: Fwd: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP
Date: Sat, 05 Sep 2020 21:04:36 +0200
Message-ID: <87r1rgt58b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: message/rfc822
Content-Disposition: inline
X-Provags-ID: V03:K1:vIK59mEFBF3aDTfWcuxwTJi4/sDP5rpan/Ub1wObeJGVj9mIpw7
 tFRM7nL6pOysGJp0KELXua+Yf39hQGzESqofw13TPEX3zSrwmGD3r1XGDUczeip0mnUh4Fn
 agipVz2+la7mdd5Ko6B3qdNn+mdjg6mI1HdeFh4ahvAv1LLLFRXTcs4sIAnXxpzxfgGXiRG
 hByao99c4mhDy59ssIZGQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:UX+PjDftf94=:2XJvRRS4OeA5mwdelGraS+
 mIs7/gMZ9v6Rji5E/AJnicHIPpCwZC8Z5jvXHnC7K+/+OrlU1gzLf/y5V2zikzuma0c87VApB
 Kx6AyEoFEdojSqzatNnMNMhJ25QMGcBdCfd10bnbaRRoKlH+2OJ1U2SeCm53ASoP4HLYrCZ96
 R++2Qp3jQQCwSDpmhxgr8ekU2RMlBO/+qN5OXYv6RZp2tOG7/0403lD/mtuiWHtGaa93Newnk
 mzn4FJg0+4mSErbaLDPCHQNcAQyo14nMmqMdFDCYu3lXoEJ7csmBWOLahH+hcOSTQcHflXnqQ
 PpplV+mP5TS6DGKPjemTy3kj9ine5a1YHMSv1SX6MaLomheemZsruR3qW2jiTg+/Ip9w8dLT9
 NcLCmApl8+ot/ZElz0d+ElfkNQb+/hrghjjk20rTL9V9qJQ7mHAbGglyd2uFM+zc5porGwnBv
 wZjFkL8QFmfXEvh81rxkJLDrTB1biqTO6a84HxMkufQeHynSE0f67FBBR3MvQjp9Sksokt9Fy
 /ZLDIBEfgp/6PRWXczvCO+BmsapdPmeci63Z3XtwRYORs6PhzG9Do/0LAN+oO2vP8kWEhYWbE
 bLYK70SaHBrqAxj1L6WwqC6Bo0IPYEaNBoMF16VMKzATX7uZ50IGHOgN8HMpkX/UBrjHyUY6x
 aROXWHp3wzDydk8NmiiPunTjvwUJjvwoR4Wcrx75iNsl3btJ/sv0a0/4XDIVFKJ7DxBHk78bY
 4fXRkwNBsFLL/q9/Wd4cPwvXzZXae2eIlUiwC77SAe32nbi5hIvl5ZUBHZI+AuG6jg7UmC1YC
 BaSG96h8gm+GmFgHCgYu6w2IW7mjQY46jHuBHQcEsRNlDdkMGRWzqYwSLHJbn0BBTPguNXfs9
 4S1VkaAGQjAH/qTtGG8EMwIIPF5o2nGmgbm/m8gaX036lmnOV+9sSfn1HvgUd8F1BvoCkbgSa
 smJDenl0UoxXee77tLjsD2xFGtZVjAzgBTZRbavUO0TDdyhB8RHwd2anvMG1fD69YD4KrpDd6
 y/2tz1ImXwQNM5je58zZi/Tx1dYxtL9j/V0u0A4CexcDAQwCsca2T1FoeEEt1xmzG4zjNnT4u
 68rUBRrEOhAcEm2C+ZSRu3pjXT+DM1N3C/nv1bYIxo3rBP9RaZDbOEctjftRlZLCU7DzLUVU5
 oDjxNWzPF0W8qitlotTm3ujY2nRgAGGc5VteXDmteUbWcgW4zEjWFgJqzFsoclQQF0hj5ZGN1
 XjYsD2RuvN7zfovgAdVsHYig956xjYiOWPQn8kQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 43226
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 26911 <at> debbugs.gnu.org,  mattiase@HIDDEN,  eggert@HIDDEN,
  yegortimoshenko@HIDDEN
Subject: Re: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP
Date: Sat, 05 Sep 2020 19:36:34 +0200
MIME-Version: 1.0
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

>> Most of the tests start with (skip-unless (tramp--test-enabled)). This
>> defun calls tramp-cleanup-connection, which shall also kill all related
>> Tramp processes. Doesn't seem to work on MS Windows.
>
> AFAICS, tramp-cleanup-connection deletes the network connection
> processes, but is that supposed to make sure the other side of the
> connection exits cleanly?

It does at least when you're on GNU/Linux. What happens on MS Windows is
beyond my knowledge.

Perhaps I'll call process-send-eof prior killing the process?

>> Maybe we shall simply allow both messages, because the exact wording
>> doesn't matter. What about the appended patch?
>
> It fixes the problem, thanks.

Pushed to master.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Sep 2020 16:38:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 05 12:38:37 2020
Received: from localhost ([127.0.0.1]:43966 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kEbD3-0006EJ-69
	for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 12:38:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:60084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kEbD1-0006EB-Cg
 for submit <at> debbugs.gnu.org; Sat, 05 Sep 2020 12:38:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54164)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1kEbD1-00005k-5s
 for bug-gnu-emacs@HIDDEN; Sat, 05 Sep 2020 12:38:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36311)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>) id 1kEbD0-0003TC-TY
 for bug-gnu-emacs@HIDDEN; Sat, 05 Sep 2020 12:38:34 -0400
Received: from [176.228.60.248] (port=2347 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1kEbCz-0002NT-Vz
 for bug-gnu-emacs@HIDDEN; Sat, 05 Sep 2020 12:38:34 -0400
Date: Sat, 05 Sep 2020 19:38:27 +0300
Message-Id: <83363wp4ak.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50;
 Running Tramp tests on MS-Windows leaves zombie processes on the
 remote
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Running Tramp tests in test/lisp/net/tramp-tests.el leaves processes
on the remote system that don't get cleaned up.  For almost every test
in the test suite, when the test exits, 3 processes are left running
on the remote: 2 sshd's and one /bin/sh (and some tests leave more
than one such triplet of processes).  These processes must be cleaned
up by hand (by using "kill -HUP" on the remote system) in order not to
fill the system with zombie processes that eventually cause
connections to fail because the OS cannot start another shell process.


In GNU Emacs 28.0.50 (build 534, i686-pc-mingw32)
 of 2020-09-05 built on HOME-C4E4A596F7
Repository revision: 82b695faa3c501fc59b1972c43284d7e02510d7f
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int --with-modules
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1255

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 51889 7931)
 (symbols 48 7147 1)
 (strings 16 18854 2377)
 (string-bytes 1 534939)
 (vectors 16 10868)
 (vector-slots 8 149128 10742)
 (floats 8 22 300)
 (intervals 40 246 76)
 (buffers 888 10))




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#43226; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 26 Oct 2022 12:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.