4

Some time ago I opened a file via tramp. That is, effectively via ssh/scp. It still is not finished and I would like to stop the reading. Yet C-g does not work. Apart from killing emacs (which seems quite unethical to me, it also destroys my M-x shell s), do I have any other option to stop the loading?

Note that the server does not hang. And I do not want any timeouts like in this question.

Community
  • 1
  • 1
false
  • 10,264
  • 13
  • 101
  • 209
  • 2
    Unless your shells are way more advanced than any I've ever used or heard of destroying them is hardly unethical. Impractical, bothersome, excessively forceful, all sorts of adjectives spring to mind. But not unethical; you're destroying a simple computer process, not a sentient entity. – High Performance Mark Oct 19 '14 at 12:37
  • 1
    @HighPerformanceMark: agreed, I thought the "also" makes this clear. – false Oct 19 '14 at 13:13

2 Answers2

5

If you can find the corresponding ssh / scp process ID, you can kill just that.

tripleee
  • 175,061
  • 34
  • 275
  • 318
2

If neither C-g nor C-cC-c are interrupting, but Emacs is still responding to M-x commands, you can kill the connection or the whole buffer.

The TRAMP manual suggests that the following M-x commands may be of interest:

  • M-x tramp-cleanup-this-connection
  • M-x tramp-cleanup-all-buffers
RJHunter
  • 2,829
  • 3
  • 25
  • 30