bug#28066: eshell-tramp sudo ignores C-c

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#28066: eshell-tramp sudo ignores C-c

Yegor Timoshenko
GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.16)
 of 2017-08-09

To reproduce, you'll need to add eshell-tramp module to configuration. Add the following form to your Emacs configuration file:

(eval-after-load 'esh-module
  '(add-to-list 'eshell-modules-list 'eshell-tramp))

Then, M-x eshell.
$ which sudo
eshell/sudo is a compiled Lisp function in ‘em-tramp.el’
$ sudo sleep 10

Now, if you try to leave interrupt `sleep` using C-c, it won't work.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#28066: eshell-tramp sudo ignores C-c

Michael Albinus
Yegor Timoshenko <[hidden email]> writes:

Hi Yegor,

> To reproduce, you'll need to add eshell-tramp module to configuration.
> Add the following form to your Emacs configuration file:
>
> (eval-after-load 'esh-module
>   '(add-to-list 'eshell-modules-list 'eshell-tramp))
>
> Then, M-x eshell.
> $ which sudo
> eshell/sudo is a compiled Lisp function in ‘em-tramp.el’
> $ sudo sleep 10
>
> Now, if you try to leave interrupt `sleep` using C-c, it won't work.

Unfortunately, it is not possible to send signals to the remote process
Tramp is running on. This has been discussed already on the Tramp ML,
with no result.

See also the TODO list on the bottom of tramp-sh.el.

Best regards, Michael.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#28066: eshell-tramp sudo ignores C-c

Richard Stallman
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > Now, if you try to leave interrupt `sleep` using C-c, it won't work.

  > Unfortunately, it is not possible to send signals to the remote process
  > Tramp is running on. This has been discussed already on the Tramp ML,
  > with no result.

Maybe eshell could detect this case
and display a message to explain to the user why it doesn't work.

--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




Loading...