[444] in Athena Bugs
Re: Bug in X11 (R1) and csh
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Wed Jun 15 13:55:23 1988
Date: Wed, 15 Jun 88 13:53:29 EDT
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
To: John F Carr <jfc@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: [0443] in bugs
It looks to me like you are getting GraphicsExpose/NoExpose events
on the window you are copying from and are never accepting them.
This fills up the incoming pipe, which the server (or kernel?)
detects, and breaks the connection.
Solutions:
1) Deal with the Expose events. (preferred)
2) Use XSync(dpy, 1). Note that this will discard all of
your events, not just the Expose ones. (clumsy, but useful for
test purposes.)
Note that there probably is an error indication, via the XIOError
handler. Note that these are not really recoverable from, and the
default XIOError handler is not very sophisticated, and exit()s
without returning to your code. (note that XError handling in
general is asynchronous, you cannot always expect an immediate
error return. The Xlib manual makes this reasonably clear.)
Mark Eichin
<eichin@athena.mit.edu>
SIPB Member & Project Athena ``Watchmaker''