From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6995 invoked from network); 3 Jun 1998 23:29:31 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 3 Jun 1998 23:29:31 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id RAA17979; Wed, 3 Jun 1998 17:29:26 -0600 From: Michal Jaegermann Message-Id: <199806032329.RAA17979@ellpspace.math.ualberta.ca> Subject: Re: Emacs hangs To: support@quant-x.com Date: Wed, 3 Jun 1998 17:29:26 -0600 (MDT) Cc: axp-list@redhat.com In-Reply-To: <199806032306.BAA00520@stefan.sime.com> from "Quant-X Alpha Linux Support" at Jun 4, 98 01:06:17 am Content-Type: text > > I think it's caused by the select(...) bug. Most likely, although this seems to be a bit more complicated. emacs still is not totally healthy but usable and this was definitely not the case with the original 5.0 distribution. > Recompile doesn't help because "/usr/include/gnu/types.h" has a > broken __FDMASK definition. This was true for some early versions. > /usr/include/gnu/types.h > from > #define __FDMASK(d) (1 << ((d) % __NFDBITS)) For quite a long while, i.e. through a number of updates, this definition is #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) which is correct but indeed requires updates to glibc-devel before recompilation. Another critical macro defintions, corrected in updates of glibc-devel, are in > to > #define __FDMASK(d) (1UL << ((d) % __NFDBITS)) > > and then recompile. so this will be not good enough. You may also want to add '(setq cannot-suspend t)' if you are using emacs on a console. It is a bit of a pain as on C-z it spawns then a new shell instead of suspending emacs and going back to the original one; otherwise some other bug hits and emacs starts to interpret all keyboard input "raw". Not a very pretty sight. Michal p.s. I did not try to recompile emacs with the current glibc-2.0.7-13 (and its headers). Maybe I should. Anybody knows for sure?