>>>> "Ray" == Ray Litwinowicz
<Litwinowicz> writes:
Ray> After logging out of CDE with XEmacs 21.4.5 still running,
Ray> the XEmacs process keeps running, and consumes ~49% of CPU.
Ray> I fixed this problem with a mod to function x_IO_handler in
Ray> file device-x.c. This is an adaptation of a fix suggested by
Ray> Chris van Engelen in comp.emacs.xemacs. See attached file
Ray> "cve_post.txt".
This isn't a fix, it's assisted suicide.
Try the following patch by Ben Sigelman <bhsigelm(a)cs.brown.edu>, which
seems to prevent XEmacs from consuming large amounts of CPU when all X
connections die.
Index: xemacs-21.5/src/event-Xt.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/event-Xt.c,v
retrieving revision 1.67
diff -r1.67 event-Xt.c
3146a3147,3166
Lisp_Object devcons, concons;
CONSOLE_LOOP (concons)
{
struct console *con = XCONSOLE (XCAR (concons));
if (!con->input_enabled)
continue;
CONSOLE_DEVICE_LOOP (devcons, con)
{
struct device* d;
Display* display;
d = XDEVICE (XCAR (devcons));
if (DEVICE_X_P (d) && DEVICE_X_DISPLAY (d)) {
display = DEVICE_X_DISPLAY (d);
while (XEventsQueued (display, QueuedAfterReading))
XtAppProcessEvent (Xt_app_con, XtIMXEvent);
}
}
}
/*
3148a3169
*/
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
My nostalgia for Icon makes me forget about any of the bad things. I don't
have much nostalgia for Perl, so its faults I remember. Scott Gilbert c.l.py