Jan Vroonhof wrote:
> That may be the root of the trouble. Otherwise I'd
> suspect the way you have compiled libgpm (maybe you added
> -D_USE_BSD?)
I am fairly sure some versions ago XEmacs used those flags on Linux.
Could it be that for some reason using this flag in the application
breaks the library too?
Well, it won't cause libgpm to start using BSD signal semantics.
However, libgpm reinstalls the old handler with signal(), which may
not be the same version of signal() that the handler was designed to
be installed with.
I am not at my linux system so I cannot check what the mechanism is.
From libc-5's signal.h:
#if defined(__USE_BSD_SIGNAL) || defined(__FAVOR_BSD)
extern __sighandler_t
__bsd_signal __P ((int __sig, __sighandler_t));
#define signal __bsd_signal
#endif /* __USE_BSD_SIGNAL || __FAVOR_BSD */
--
Glynn Clements <glynn(a)sensei.co.uk>