Article View: comp.windows.x
Article #23689Re: Xt/Xaw: Detecting KillClient from a WorkProc?
From: Ralph Swick
Date: Thu, 13 Jun 1991 17:27
Date: Thu, 13 Jun 1991 17:27
21 lines
1565 bytes
1565 bytes
When the application is destroyed by a
KillClient from the window manager, the WorkProc keeps running.
Now I need to know how I could detect this case so that I could
finish up the WorkProc and the child process.
Xt will not interrupt work procs, if that's what you're expecting
to happen. But, since work procs are supposed to execute for only
a short time relative to human response time, this should not be
a major issue; when your work proc returns, you have the opportunity
to handle whatever is in the Xlib queue.
However, handling KillClient is hard; from the client side it
usually looks like an XIOError. For this reason, the ICCCM provides
a much better alternative.
What you really want to do is use the WM_PROTOTOLS window property
and a well-behaved window manager to avoid ever seeing KillClient.
Look up WM_DELETE_WINDOW in the ICCCM (page 543 of the Digital Press
book), XSetWMProtocols (307) and the <ClientMessage> translation
specification in Xt (page 885 of the other Digital Press book).
Technical Details
Message-ID:
<9106131727.AA19571@lyre.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-linesReferences:
<1991Jun13.124031.7702@uni-paderborn.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: swick@athena.mit.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: Xt/Xaw: Detecting KillClient from a WorkProc? Message-ID: <9106131727.AA19571@lyre.MIT.EDU> Date: 13 Jun 91 17:27:41 GMT References: <1991Jun13.124031.7702@uni-paderborn.de> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21