From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43226: 28.0.50; Running Tramp tests on MS-Windows leaves zombie processes on the remote Date: Sun, 06 Sep 2020 19:07:50 +0300 Message-ID: <83d02yopm1.fsf@gnu.org> References: <83363wp4ak.fsf@gnu.org> <87mu24t57t.fsf@gmx.de> <87imcst4om.fsf_-_@gmx.de> <83v9gsnhzj.fsf@gnu.org> <87eenfthlc.fsf@gmx.de> <83h7sbndi4.fsf@gnu.org> <87lfhmzyr8.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33643"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43226@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 06 18:09:09 2020 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 1kExE5-0008es-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 18:09:09 +0200 Original-Received: from localhost ([::1]:37956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kExE4-0001fx-CZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 12:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kExDy-0001fY-8k for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 12:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kExDx-0006cm-Vg for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 12:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kExDx-0005w4-Pg for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 12:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Sep 2020 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43226 X-GNU-PR-Package: emacs Original-Received: via spool by 43226-submit@debbugs.gnu.org id=B43226.159940848322745 (code B ref 43226); Sun, 06 Sep 2020 16:09:01 +0000 Original-Received: (at 43226) by debbugs.gnu.org; 6 Sep 2020 16:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:46917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kExD0-0005un-RV for submit@debbugs.gnu.org; Sun, 06 Sep 2020 12:08:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kExCy-0005uJ-Ns for 43226@debbugs.gnu.org; Sun, 06 Sep 2020 12:08:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52192) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kExCt-0006YG-FX; Sun, 06 Sep 2020 12:07:55 -0400 Original-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 ) id 1kExCs-0004Sj-Sj; Sun, 06 Sep 2020 12:07:55 -0400 In-Reply-To: <87lfhmzyr8.fsf@gmx.de> (message from Michael Albinus on Sun, 06 Sep 2020 17:54:51 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:187354 Archived-At: > From: Michael Albinus > Cc: 43226@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?