Midnight Commander – Troubleshooting Slow Start

mc

Is there any way to prevent mc from taking 10-30 seconds to open?

Best Answer

It works for me now. I am using

GNU Midnight Commander 4.8.21

strace wait on long time

connect(3, {sa_family=AF_INET, sin_port=htons(6011),
  sin_addr=inet_addr("x.x.x.x")}, 16) = ? ERESTARTSYS
  (To be restarted if SA_RESTART is set)' 

I tried this:

# hostname

use this for /etc/hosts:

nameofhost=hostname

add this $nameofhost to the /etc/hosts on line starting with

127.0.0.1 localhost ... $nameofhost 

Cheers!

Related Question