[comp.windows.x] Techniques for detecting immanent death...

davecb@yunexus.UUCP (David Collier-Brown) (02/27/90)

  I have a minor problem with the xload client: unlike the non-x load
programs, it resides on the machine being measured... which means that it
lives and dies with that machine(as you'd expect).  Unfortunately, one of
the things I have an xload running is to detect unexpected slowdowns or
crashes of that machine!

  Can anyone suggest some (more) techniques for detecting immanent death?
At the moment I have:
	0) select the window manually and see if it disappears
	1) have window manager select it occasionally (when idle)
	   to see if its going to disappear
	2) SIGHUP handler changes display bitmap and exits program
	   without cleaning up.
	3) magic spell causes machines to stay up forever.

  I'd much prefer the third, but I don't know how to do it in X (:-)).  The
second sounds plausible, but isn't sufficent: not all machines sighup when
they shut down, and few send anything when they panic (some signal powerfail
or other detectable conditions).  The first two are kludges.

  Can anyone suggest a better approach or three?

--dave
-- 
David Collier-Brown,  | davecb@yunexus, ...!yunexus!davecb or
72 Abitibi Ave.,      | {toronto area...}lethe!dave 
Willowdale, Ontario,  | Joyce C-B:
CANADA. 416-223-8968  |    He's so smart he's dumb.