Re: [gtk-list] destroy in X



On Wed, 23 Jul 1997, Hoek wrote:

> Does anybody know how you catch the signal that occurs when you select
> "destroy" in the xterm menu (in fvwm, don't know about other managers)?
> With gimp I get:

The client that is "destroyed" gets no signal - the destroy operation is a
last ditch effort (beyond close and delete) to get rid of a window.


> ** ERROR **: an x io error occurred
> gimp fatal error: sigabrt caught
> [n]othing, [e]xit, [s]tack trace, [a]ttach to process: s
> bash: s: command not found
> 
> [2]+  Stopped (tty input)     gimp
> 
> Actually, the question is: how do you prevent the ERROR happening?

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.

-- 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]