-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
savannah: slow starting of mc #86
Comments
added by nijman |
added by nijman |
|
|
I can add that I am running this problem while on SSH from Putty (windows PC).
Running strace I saw that the startup pauses while trying to connect to port 6000 of my windows machine.
As a workaround I unset the DISPLAY shell variable and now mc starts fast as expected. |
thanks for tip! |
suppressing the problem should be as simple as checking whether WINDOWID is set in addition to DISPLAY before trying XOpenDisplay(). this ensures that mc is running directly inside xterm (or pretty much any other x terminal emulator) and consequently whether making the X connection seems to make sense at all (it's used for keyboard modifier tracking, to work around tty layer deficiencies). on the downside, it would also break modifier tracking for remote shells inside xterm which *do* have configured DISPLAY correctly (fixable with ssh (SendEnv WINDOWID in ssh_config, AcceptEnv WINDOWID in sshd_config), but needs root to fix. telnet also has an environment sending option. 'sux -' would be a problem, i think).
the alternative is setting an alarm() over the XOpenDisplay() (5 seconds ought to be enough) and printing "Connection to X server timed out. Please fix or clear $DISPLAY in the future." |
branch: 86_disable_x11_flag |
Available binary packages with fixes applied (nightly build 4:4.8.0~git20111028-2) For Debian\Ubuntu see https://www.midnight-commander.org/wiki/Binaries. |
New option should be described in MAN page. |
|
|
|
please review |
|
|
Fixed: [847b109] |
cherry-picked into 4.8.1-stable [3e15b5a] |
|
|
|
Important
This issue was migrated from Trac:
nijman
Original: http://savannah.gnu.org/bugs/?24038
Original submission:
Comment 1 by Oswald Buddenhagen <ossi> at Tue 12 Aug 2008 10:07:17 AM UTC:
Comment 2 by Ies Nijman <nijman> at Tue 12 Aug 2008 11:26:57 AM UTC:
Comment 3 by Ies Nijman <nijman> at Tue 12 Aug 2008 12:43:53 PM UTC:
Comment 4 by Ies Nijman <nijman> at Tue 12 Aug 2008 02:28:09 PM UTC:
Comment 5 by Irakli <ika256> at Wed 03 Sep 2008 07:29:31 AM UTC:
Comment 6 by Sorin Sbarnea <sorin> at Tue 07 Oct 2008 10:54:29 AM UTC:
Comment 7 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 10:48:06 AM UTC:
Comment 8 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 10:58:47 AM UTC:
Comment 9 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 11:17:09 AM UTC:
Note
Original attachments:
slavazanko
(@slavaz) onDec 26, 2008 at 10:43 UTC
slavazanko
(@slavaz) onDec 26, 2008 at 10:43 UTC
The text was updated successfully, but these errors were encountered: