caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] lablgtk question: catching server shutdown
@ 2002-02-05 10:37 Hendrik Tews
  2002-02-07  8:45 ` Jacques Garrigue
  0 siblings, 1 reply; 2+ messages in thread
From: Hendrik Tews @ 2002-02-05 10:37 UTC (permalink / raw)
  To: caml-list

Hi,

I have a lablgtk question:

Is there a canonical way to register a function that will be
called when the connection to the X server is lost?

I looked at the gtk sources (version 1.2.9) and there they
register the function gdk_x_io_error with XSetIOErrorHandler. And
gdk_x_io_error prints 

  Gdk-ERROR **: X connection to :0.0 broken (explicit kill or server shutdown).

and calls exit. So it looks like there is no way to register a
callback for this event. Am I right?

How do others do "cleaning up" when the X server dies?


Bye,

Hendrik
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-07  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-05 10:37 [Caml-list] lablgtk question: catching server shutdown Hendrik Tews
2002-02-07  8:45 ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).