From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA32346; Tue, 5 Feb 2002 11:37:48 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA18103 for ; Tue, 5 Feb 2002 11:37:47 +0100 (MET) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g15Abl910055 for ; Tue, 5 Feb 2002 11:37:47 +0100 (MET) Received: from ithif51 (ithif51 [141.76.75.51]) by tcs.inf.tu-dresden.de (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id g15AbkQf000224 for ; Tue, 5 Feb 2002 11:37:46 +0100 (MET) Received: from tews by ithif51 with local (Exim 3.12 #1 (Debian)) id 16Y2yw-0008Dn-00 for ; Tue, 05 Feb 2002 11:37:46 +0100 From: Hendrik Tews MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15455.46586.298770.173632@gargle.gargle.HOWL> Date: Tue, 5 Feb 2002 11:37:46 +0100 (CET) To: caml-list@inria.fr Subject: [Caml-list] lablgtk question: catching server shutdown X-Mailer: VM 6.75 under Emacs 20.7.2 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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