Re: [gtk-list] Re: destroy in X



On Wed, 23 Jul 1997, Hoek wrote:

> > You can't, the whole point of destroy is to do a hard disconnect.
> > 
> > Try setting a SIGABRT signal handler in your program, see if that works.
> 
> It works more or less.  Still got the ** ERROR ** message though, instead
> of the usual
> 
> X connection to :0.0 broken (explicit kill or server shutdown).

Well of course! gdk sets its own custom error handlers. The "usual"
message just happens to be because most programs use the default X error
handlers, which always exit on a hard error...

> And gimp for example doesn't get killed, it just stops.  I have to kill -9
> it myself.

Hmm, try having it do a gtk_exit(1); in its SIGABRT handler...

-- Elliot					http://www.redhat.com/
What's nice about GUI is that you see what you manipulate.
What's bad about GUI is that you can only manipulate what you see.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]