Term Images for "Emacs Tramp Hangs on Mac OS X when doing a sudo"

Emacs Tramp Hangs on Mac OS X when doing a sudo

in

I just found this bit of weirdness, and I am not necessarily the only one either.

Whenever using Tramp to open a file with the /sudo::/ syntax, it would hang for a long time. Sometimes not even being responsive to Ctrl-G. Looking at the process tree, I noticed that there was a stuck ping process.

This seemed to be because of the ecb-ping-options variable. It was set to

("HOST")

If that is switched to

("-c 2" "HOST")

instead, then everything should work.

The reason why it happens like this, is that under Mac OS (and probably most other BSD's) the default number of pings to execute is infinite, so ping stays hung (he, he, allllright).

I haven't extensively tested this, and the ecb-ping-options variable might need to be this instead:

("-c" "2" "HOST")
Your rating: None

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The fucking spammers are ruining the internets. Sadly I need to make sure you are human.
1 + 12 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.