xrootd/xrootd — pull request #111 by alja (2014-05-01 20:58:24+00:00)
Title: Fix 100% CPU usage in XrdSysCondVar::WaitMS

It is possible XrdSysCondVar::WaitMS() burns all CPU if abstime is invalid. The pthread_cond_timedwait exit with EINVAL in this case.

To reproduce the bug change line https://github.com/xrootd/xrootd/blob/master/src/XrdSys/XrdSysPthread.cc#L141 to:
tval.tv_sec = tnow.tv_sec + sec -1;