Around 20 o'clock on May 17, Pierre Phaneuf wrote:
> How should I go if I wanted my X client to survive the X server > disconnecting it? > > I thought of doing something like setjmp before every Xlib calls, with > an XSetIOErrorHandler that longjmp back, but I am suspicious of leaks... > > How screwed am I exactly? Using Xlib, you've figured out pretty much the whole (current) story. Xlib needs fixing, and it's probably not all that hard. When I wrote a C library for X some time ago, I made pending replies return errors, dropped new requests on the floor and generated no events. Jg has a plan to return a special event when the connection is lost; that's probably pretty workable and would make notifying the outer loop a bit easier. It shouldn't be that hard to fix; we'd really appreciate the help as there are more and more such applications around these days. Keith Packard XFree86 Core Team HP Cambridge Research Lab _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
