Download from http://ccrma.stanford.edu/~kjetil/src/
cp das_watchdog /usr/local/sbin/
echo '/usr/local/sbin/das_watchdog >/dev/null &' >>/etc/rc.sysinit
Whenever a program locks up the machine, the watchdog temporarily sets all
realtime process to non-realtime for 8 seconds. You will get an xmessage
window up on the screen whenever that happens.
To test it, run the attached program "test_rt" (as root on 2.4), which
immediatley freezes your machine. However, a window should pop up after
about 5-6 seconds telling you that the watchdog set the process to
* Properly set the DISPLAY and XAUTHORITY environment variables in
various ways to make sure the message is really shown. (It really works
* Use xmessage instead of wish. (much nicer)
The program is mentally based on Florian Schmidts program rt_watcdog.
Florian Schmidt also wrote the included test_rt program.