[505] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: destroy in X
daemon@ATHENA.MIT.EDU (Elliot Lee)
Wed Jul 23 10:05:33 1997
Date: Wed, 23 Jul 1997 10:04:49 -0400 (EDT)
From: Elliot Lee <sopwith@redhat.com>
To: gtk-list@redhat.com
In-Reply-To: <199707231359.PAA18913@pcjeroen.ubu.ruu.nl>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
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.
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null