emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs crashed trying to connect to X display


From: Richard Stallman
Subject: Re: Emacs crashed trying to connect to X display
Date: Sat, 08 Sep 2007 22:13:41 -0400

    If it can't connect to an X server, it just crashes Emacs - that can't be
    the desired behaviour, can it?

I agree.  Your setting of DISPLAY was user error, and I am not sure it
can possibly "work right", but there's no reason it should crash
Emacs.

It looks like setting up the initial terminal calls x_display_ok
to verify that the specified display can be reached.
But it looks like there is no such test when you open a display during
the session.

Does this prevent the crash?


*** xterm.c     29 Aug 2007 13:00:35 -0400      1.954
--- xterm.c     08 Sep 2007 21:02:20 -0400      
***************
*** 10621,10626 ****
--- 10628,10636 ----
        ++x_initialized;
      }
  
+   if (! x_display_ok (SDATA (display_name)))
+     error ("Display %s can't be opened", SDATA (display_name));
+ 
  #ifdef USE_GTK
    {
  #define NUM_ARGV 10




reply via email to

[Prev in Thread] Current Thread [Next in Thread]