mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix race in TestThread#test_thread_status_in_trap
* If the sleep is not enough to run the rest of the logic the process would be exited early, e.g., before the signal handler can run.
This commit is contained in:
parent
25ad9eabc7
commit
a0e3da9ecc
1 changed files with 1 additions and 1 deletions
|
@ -1068,7 +1068,7 @@ q.pop
|
||||||
puts mth.status
|
puts mth.status
|
||||||
Process.kill(:INT, $$)
|
Process.kill(:INT, $$)
|
||||||
}
|
}
|
||||||
sleep 0.1
|
sleep
|
||||||
INPUT
|
INPUT
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue