Current-Users archive

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

Re: emacs -nw hangs

On Tue, May 08, 2012 at 10:57:41PM +0200, Thomas Klausner wrote:
> Hi!
> On 6.99.6/amd64, emacs-23.4.1, when started in a text window, stops
> accepting all key presses in that terminal window. It can't even be
> backgrounded with CTRL-Z. When it has its own X window, it works fine.
> Anyone else seeing this? Just type "emacs -nw" and try pressing any
> key. I can reproduce it locally and when logging in via ssh. The
> keyboard still works e.g. ALT-TAB or window manager special keys, just
> inside the emacs window there's no reaction to any key.
> I don't know when I last tried this on this machine, but probably at
> most a few weeks ago, so it must have broken recently. Any ideas what
> could have caused this?


We saw something similar on OpenBSD after a glib upgrade a few weeks ago.
Antoine Jacoutot found thispatch to fix it: 

$OpenBSD: patch-src_xgselect_c,v 1.1 2012/03/29 18:07:27 ajacoutot Exp $

--- src/xgselect.c.orig Wed Jan 11 13:35:01 2012
+++ src/xgselect.c      Thu Mar 29 20:01:32 2012
@@ -55,6 +55,9 @@ xg_select (max_fds, rfds, wfds, efds, timeout)
   do {
     if (n_gfds > gfds_size) 
+        if (gfds_size == 0)
+          xgselect_initialize ();
         while (n_gfds > gfds_size) 
           gfds_size *= 2;
         xfree (gfds);

Matthieu Herrb

Home | Main Index | Thread Index | Old Index