Article View: comp.windows.x
Article #37425Techniques for detecting immanent death...
From: David Collier-Brown
Date: Tue, 27 Feb 1990 13:27
Date: Tue, 27 Feb 1990 13:27
29 lines
1638 bytes
1638 bytes
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.
Technical Details
Message-ID:
<8036@yunexus.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mailrus!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!davecbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mailrus!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!davecb From: davecb@yunexus.UUCP (David Collier-Brown) Newsgroups: comp.windows.x Subject: Techniques for detecting immanent death... Message-ID: <8036@yunexus.UUCP> Date: 27 Feb 90 13:27:02 GMT Organization: York U. Computing Services Lines: 29