From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32502: 27.0.50; Tramp; C-g during asynchronous remote find-file kills Emacs Date: Sat, 25 Aug 2018 15:42:45 +0300 Message-ID: <83pny67h2y.fsf@gnu.org> References: <87mutep8ll.fsf@runbox.com> <83o9dub5nx.fsf@gnu.org> <83muteb4nb.fsf@gnu.org> <87o9dqbtv5.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535200932 951 195.159.176.226 (25 Aug 2018 12:42:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 12:42:12 +0000 (UTC) Cc: gazally@runbox.com, 32502@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 25 14:42:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftXtI-00008R-1k for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 14:42:08 +0200 Original-Received: from localhost ([::1]:45731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftXvO-00030o-20 for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 08:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftXvH-00030i-TY for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 08:44:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftXvC-00069V-RZ for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 08:44:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftXv8-000676-C9 for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 08:44:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ftXv8-0000n7-6J for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Aug 2018 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32502 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32502-submit@debbugs.gnu.org id=B32502.15352009892976 (code B ref 32502); Sat, 25 Aug 2018 12:44:02 +0000 Original-Received: (at 32502) by debbugs.gnu.org; 25 Aug 2018 12:43:09 +0000 Original-Received: from localhost ([127.0.0.1]:60261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftXuG-0000ls-QH for submit@debbugs.gnu.org; Sat, 25 Aug 2018 08:43:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftXuE-0000lM-ES for 32502@debbugs.gnu.org; Sat, 25 Aug 2018 08:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftXu4-00054x-VN for 32502@debbugs.gnu.org; Sat, 25 Aug 2018 08:43:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftXu4-00054p-Qp; Sat, 25 Aug 2018 08:42:56 -0400 Original-Received: from [176.228.60.248] (port=2797 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ftXu4-00063P-9y; Sat, 25 Aug 2018 08:42:56 -0400 In-reply-to: <87o9dqbtv5.fsf@gmx.de> (message from Michael Albinus on Sat, 25 Aug 2018 12:53:02 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149745 Archived-At: > From: Michael Albinus > Cc: gazally@runbox.com, 32502@debbugs.gnu.org > Date: Sat, 25 Aug 2018 12:53:02 +0200 > > > Michael, unless I'm missing something, it sounds like Tramp signals > > the main thread in this scenario. (current_thread->error_symbol is > > only set by thread-signal.) Is that really necessary? If so, can you > > describe why you needed to signal the main thread, while it was > > waiting for input? > > Tramp propagates all signals to the main thread, otherwise they are not > visible. Is that wise? It means that if a user is doing something in the main thread while the Tramp threads run asynchronously, the user's program will/might error out. > However, if we apply this I don't know how to quit (let's say) 250 > threads. One quit signal is good for one thread only. I believe we need > also a mechanism to quit many threads at once. I think we should simply make thread-signal a no-op when it signals the main thread during the time the main thread is waiting for input.