From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#35506: 27.0.50; Emacs hangs while interrupting tramp processes Date: Fri, 03 May 2019 10:30:41 +0200 Message-ID: <875zqs7xe6.fsf@gmx.de> References: <87y33rzalc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26047"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35506@debbugs.gnu.org To: John Shahid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 03 23:20:02 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMfb7-0012u5-0K for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 23:20:01 +0200 Original-Received: from localhost ([127.0.0.1]:36569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMTb9-00038E-AV for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 04:31:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMTb0-000366-B3 for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMTaw-0000Sv-JB for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMTaw-0000Sm-EW for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMTaw-0001SC-8X for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 04:31: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: Fri, 03 May 2019 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35506 X-GNU-PR-Package: emacs Original-Received: via spool by 35506-submit@debbugs.gnu.org id=B35506.15568722515570 (code B ref 35506); Fri, 03 May 2019 08:31:02 +0000 Original-Received: (at 35506) by debbugs.gnu.org; 3 May 2019 08:30:51 +0000 Original-Received: from localhost ([127.0.0.1]:47640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMTal-0001Rm-A6 for submit@debbugs.gnu.org; Fri, 03 May 2019 04:30:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:35601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMTaj-0001RY-Ql for 35506@debbugs.gnu.org; Fri, 03 May 2019 04:30:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1556872242; bh=S4/xdIwbrE/HdCbHO/gt3Vfr0ud2PjTWwlSaD9p7ojU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=d9DDgVR0UFbuyP/BbvCCB5esTIyVNtusCxu5sRSLQuFwGK6vwHNnWEE/AHJpQJMc1 sc0PwiR++nMsLn4wKhxwzHQ6Zvn0Hkzb8X0A2Pj+QBOQbp1MEOvXH3n1U77ErYP96A +cTJeZI5/bQIL6in8hD7qbmJFQUU5Vntk3x6k4RM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([213.220.157.162]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MXIcX-1hImIh1xy9-00WEcf; Fri, 03 May 2019 10:30:42 +0200 In-Reply-To: <87y33rzalc.fsf@gmail.com> (John Shahid's message of "Tue, 30 Apr 2019 13:06:39 -0400") X-Provags-ID: V03:K1:clE/U5jfu1ffAiI03WVJI0tRSkfvHWd5UUH08OyPRY+oA/0OgpZ Kioed/0y1jM4ISgo0yYdtx3AUg1XdXDxpO7d0pyRKP/xvY5kRFBa6gzAZe32Eq29gAeFXwS GEkVbhWx6IglfGENsYajnLJezJgvq8A1x7azq4OQ54eEVo+eJbq+7Nwxnt7YVZqRaEJnGBc 8x0nJqjBDbDBniyj2O8cQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:cLmnhq8qWPI=:3ANRdomEwWHMzG2ZCWehXE i5gs/CsgwLjIj/LAE6xtTNZ0W0oPnbtMWAI5gIEXHfcMolUKHTq8lLg9xUnYYMncKX+ev81O4 4jLO4JaDF0+uYz5zGkZWfS69iXyazvvet3jl6X2Pv1+tWxJ8VNtrEQxmDsqKQnfHPkXTpnMJU bgBGLU33A1qygBjU2TGPf0MlkeccMzcMSM68WOcLCde0im5kvMVV+MRMhRabir7qYj+lV+OfC r2uzUskB2PgxCCvZpYYGfX7oj+hqQ2ybqYP80AWuDidTRqbZAjaGG2sy+lHVw8MsYhc8eiBQC kaD5as6BCv6UeMtL2D6iNMTDiQecTXzuVpAHkkwrMbPKhMvX58wZ+1H7+jMekY+TNWBUyjzka IoUOt8HihyCL0NWSItoxQbvLbqGn7Ytm8UsCedXkSW/64swPtYVZjckyiHmZLd9KYQPKgI7/K VZk4uiiQgGpDon4gET78d9O+EaNABz0De6tXTGH+xIG+yph9vWlJHExlDQhdqAUdZ+BI2JAfw qwfr/0DbcDbZXkE8503X2XQZwkKZ2EMBChRfR0UwLj4d07Z6q59Ni/wU51LmML4wOKZK/FwJ1 eTcMGsFqnvq7AfteHk62gHe+wcAG1xfScBBxmMKdldrrlWkyQrtZYLkB3swnmN7lgBT6LESzO drSO4FQ1/jT2+24wh5WXVVdZigPov66INvN0RAsCWDhWu1FiEU96dEUI8k8gnRxcdt+eAJ0HT ls7Yjc0IAqDkKfN2A95lD4WU+hDHGZeqMDWP77K6PwIOnrtnko6PB6BjUe5ySyXJJQvVvIxi 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: 209.51.188.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:158717 Archived-At: John Shahid writes: Hi John, > It looks like the first issue can be solved by killing the entire > process group, but I am not sure how safe it is to always do that. I > will attach a patch that I use locally which seem harmless so far. Reading the Emacs manual again at (info "(elisp) Signals to Processes") --8<---------------cut here---------------start------------->8--- If CURRENT-GROUP is =E2=80=98nil=E2=80=99, the signal is sent to the proces= s group of the immediate subprocess of Emacs. --8<---------------cut here---------------end--------------->8--- So your patch is correct, pls push. > The second issue can be solved by not waiting for the process to exit. > This seems to be in line with the contract of `interrupt-process'. I > will attach a patch to remove the wait. No, Tramp must report success. See the Emacs manual, same location as above: --8<---------------cut here---------------start------------->8--- -- Variable: interrupt-process-functions This variable is a list of functions to be called for =E2=80=98interrupt-process=E2=80=99. The arguments of the functions a= re the same as for =E2=80=98interrupt-process=E2=80=99. These functions are calle= d in the order of the list, until one of them returns non-=E2=80=98nil=E2=80=99= . The default function, which shall always be the last in this list, is =E2=80=98internal-default-interrupt-process=E2=80=99. This is the mechanism, how Tramp implements =E2=80=98interrupt-process= =E2=80=99. --8<---------------cut here---------------end--------------->8--- So we must investigate, why `interrupt-process' does not return in your cas= e. Best regards, Michael. PS: In the FSF list, your email address is given as . Looks like a typo, maybe you contact the FSF clerk about.