[vdr] VDR gets somehow stuck and consumes all CPU time

Johannes Stezenbach js at linuxtv.org
Sat Dec 10 18:50:11 CET 2005


On Sat, Dec 10, 2005, Klaus Schmidinger wrote:
> Do you think we need a fallback solution, just in case the syscall fails?
> Paavo Hartikainen's posting (12/05/05 03:57) would indicate that this
> can happen.
> 
> Maybe we should use pthread_self() in case gettid() returns -1, and
> use pthread_t to store such values, because it's large enough to hold
> pid_t as well as pthread_t.
> 
> Or should we make this system dependent (with #ifdef)?
> So that non-Linux systems can provide a different solution.

I think the pthread_self() return value is pretty useless in debug output.

If gettid() fails then you probably have an old kernel and getpid()
already gives you what you want (a PID you can match with top output).

Johannes



More information about the vdr mailing list