diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 09:07:36 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 09:07:36 +0000 |
commit | fe2f89af9ad6bd87ec91b7042593bc8c7247708b (patch) | |
tree | abc70486d79868a0773368ab39ee94d6b316bed5 /test/ruby/test_continuation.rb | |
parent | 3bee3527fd397921b3e4aa3ea001d7b2af99b3bc (diff) | |
download | ruby-fe2f89af9ad6bd87ec91b7042593bc8c7247708b.tar.gz |
thread.c (sleep_*): reduce the effect of spurious interrupts
Spurious interrupts from SIGCHLD cause Mutex#sleep (via
ConditionVariable#wait) to return early and breaks some use
cases. Since these are outside the programs's control with
MJIT, we will only consider pending interrupts (e.g. those
from Thread#run) and signals which cause a Ruby-level Signal.trap
handler to fire as "spurious" wakeups.
[ruby-core:88537] [Feature #15002]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_continuation.rb')
0 files changed, 0 insertions, 0 deletions