[linux-audio-dev] Re: [Jackit-devel] [ANN] das_watchdog 0.0.1 and jack_capture v0.2.3

Florian Schmidt mista.tapas at gmx.net
Mon Feb 13 12:22:21 UTC 2006


On Sun, 12 Feb 2006 20:46:08 -0800 (PST)
"Kjetil S. Matheussen" <kjetil at ccrma.stanford.edu> wrote:

> Das_Watchdog
> ============
> 
> ABOUT
> -----
> Das_Watchdog is a program heavily and shamefully inspired by the 
> rt_watchdog program made by Florian Schmidt: 
> http://tapas.affenbande.org/?page_id=38

Hehe, why shamefully? This is open source, baby. So i'm glad there's
some alternative to my messy code ;) And btw: the two programs are still
a bit different. rt_watchdog is a daemon. I have wondered about how to
make it known to the user that it has kicked in. The only solution i
found was to write into the logs. Opening an xwindow is an interesting
solution. Does linux maybe even have a standardized way for this kinda
stuff?

> However, this one has some improvements:
> 
> 1. It works with 2.4 kernels as well as 2.6. (well, at least I think it
>     works with 2.6...)
> 2. Instead of permanently setting all realtime processes to run
>     non-realtime, das_watchdog only sets them temporary.
> 3. When the watchdog kicks in, an X window should pop up that tells you
>     whats happening. (just close it after reading the message).
> 
> 
> INSTALLING
> ----------
> make
> cp das_watchdog /usr/local/sbin/
> echo '/usr/local/sbin/das_watchdog & >/dev/null' >>/etc/rc.local

This assumes an initscript style that's not used on all linux systems. 

> reboot

Also i wonder: Is it safe to simply use a static int as "event counter"?
Might this not fail on SMP boxes?

I think i make a similar mistake by using a volatile int (not as a
counter, just as a exit state indicator) instead. Any gurus care to
comment?

Flo

-- 
Palimm Palimm!
http://tapas.affenbande.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-devel


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.



More information about the Linux-audio-dev mailing list