unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35665: 27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c
@ 2019-05-10  2:04 Dima Kogan
  2019-05-10  7:47 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Dima Kogan @ 2019-05-10  2:04 UTC (permalink / raw)
  To: 35665

Hi. This is a semi-recent regression. I've been observing it for a few
months now, but have only now tried to track it down. I'm currently
using a very recent build of emacs from git:

  http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=7dafbe3ab91

Recipe:

1. C-x C-f /ssh:someserver:
   Opens up a TRAMP ssh connection to some server. This opens up the ~
   in dired mode

2. M-x shell
   Opens up a remote shell.

3. sleep 10000
   I.e. make the remote box do something that doesn't quit immediately

4. C-c C-c
   This SHOULD send SIGINT to the process to kill it. And it did that
   previously, but it doesn't do that anymore. Now it just hangs

I just did a bit of debugging. C-c C-c invokes
(tramp-interrupt-process). This calls (tramp-send-command) to send a
"kill -2 PID" and then (tramp-accept-process-output) to wait for a new
shell prompt; I think. For whatever reason, the server is not getting
the "kill -2 PID" anymore, so the waiting for the prompt now hangs
forever. I'll poke at it some more, but it's likely somebody more
knowledgeable will be able to figure this out much faster than me.

Thanks!





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35665: 27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c
  2019-05-10  2:04 bug#35665: 27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c Dima Kogan
@ 2019-05-10  7:47 ` Michael Albinus
  2019-06-06  6:59   ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2019-05-10  7:47 UTC (permalink / raw)
  To: Dima Kogan; +Cc: 35665

Dima Kogan <dima@secretsauce.net> writes:

> Hi.

Hi Dima,

> I just did a bit of debugging. C-c C-c invokes
> (tramp-interrupt-process). This calls (tramp-send-command) to send a
> "kill -2 PID" and then (tramp-accept-process-output) to wait for a new
> shell prompt; I think. For whatever reason, the server is not getting
> the "kill -2 PID" anymore, so the waiting for the prompt now hangs
> forever. I'll poke at it some more, but it's likely somebody more
> knowledgeable will be able to figure this out much faster than me.

Looks to me like a duplicate of bug#35506, could you pls check? That bug
report contains also patches, which might help you.

> Thanks!

Best regards, Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35665: 27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c
  2019-05-10  7:47 ` Michael Albinus
@ 2019-06-06  6:59   ` Michael Albinus
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2019-06-06  6:59 UTC (permalink / raw)
  To: Dima Kogan; +Cc: 35665-done

Version: 27.1

Michael Albinus <michael.albinus@gmx.de> writes:

Hi Dima,

>> I just did a bit of debugging. C-c C-c invokes
>> (tramp-interrupt-process). This calls (tramp-send-command) to send a
>> "kill -2 PID" and then (tramp-accept-process-output) to wait for a new
>> shell prompt; I think. For whatever reason, the server is not getting
>> the "kill -2 PID" anymore, so the waiting for the prompt now hangs
>> forever. I'll poke at it some more, but it's likely somebody more
>> knowledgeable will be able to figure this out much faster than me.
>
> Looks to me like a duplicate of bug#35506, could you pls check? That bug
> report contains also patches, which might help you.

No News are Good News. I'm closing this bug, assuming it is solved in
the master branch. Feel free to reopen if there are still problems.

>> Thanks!

Best regards, Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-06  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-10  2:04 bug#35665: 27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c Dima Kogan
2019-05-10  7:47 ` Michael Albinus
2019-06-06  6:59   ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).