emacs-devel
[Top][All Lists]
Advanced

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

Re: 1024 file descriptors should be enough for anyone


From: Robert Pluim
Subject: Re: 1024 file descriptors should be enough for anyone
Date: Fri, 06 May 2022 14:21:28 +0200

>>>>> On Fri, 06 May 2022 18:41:52 +0800, Po Lu <luangruo@yahoo.com> said:

    Po> Robert Pluim <rpluim@gmail.com> writes:
    >> TIL that Imake.cf is still used, and now Iʼm having flashbacks ☺️

    Po> Actually, you were right.  It seems that Xt migrated to Autoconf as
    Po> well.

    Po> I thought only the X server switched to autoconf.

Is this the kind of change you were thinking of? Or do I need to call
'XtCloseDisplay' as well?

diff --git a/src/xterm.c b/src/xterm.c
index 285b1d625e..28bf81c0bd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23232,13 +23232,18 @@ #define NUM_ARGV 10
                         resource_name, EMACS_CLASS,
                         emacs_options, XtNumber (emacs_options),
                         &argc, argv);
-    request_sigio ();
-    turn_on_atimers (true);
+    if (ConnectionNumber (dpy) >= FD_SETSIZE)
+      dpy = 0;
+    else
+      {
+       request_sigio ();
+       turn_on_atimers (true);
 
 #ifdef HAVE_X11XTR6
     /* I think this is to compensate for XtSetLanguageProc.  */
-    fixup_locale ();
+       fixup_locale ();
 #endif
+      }
   }
 
 #else /* not USE_X_TOOLKIT */

Robert
-- 



reply via email to

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