1
0
Fork 0
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:
Benoit Daloze 2022-03-01 16:49:23 +01:00
parent 25ad9eabc7
commit a0e3da9ecc

View file

@ -1068,7 +1068,7 @@ q.pop
puts mth.status
Process.kill(:INT, $$)
}
sleep 0.1
sleep
INPUT
end