From: Graham Agnew Date: 2010-05-06T06:01:38+09:00 Subject: [ruby-core:30035] [Bug #1341] pthread_cond_timedwait failing in 1.9.1-p0 thread tests Issue #1341 has been updated by Graham Agnew. On HP-UX, that patch stopped the rb_bug_errno happening, although the test/ruby/test_io.rb and test/ruby/test_thread.rb scripts both blocked indefinitely. The code in your patch doesn't look right to me. Shouldn't the code re-fetch the time using gettimeofday each time through the loop, and then add the MEGA_SEC to that? As it is, it's wrong because it adds a MEGA_SEC to tvn, so after one MEGA_SEC it will enter a hard loop. Cheers, Gra. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1341 ---------------------------------------- http://redmine.ruby-lang.org