diff options
| author | KJ Tsanaktsidis <kj@kjtsanaktsidis.id.au> | 2024-11-09 15:26:53 +1100 |
|---|---|---|
| committer | KJ Tsanaktsidis <kj@kjtsanaktsidis.id.au> | 2024-11-08 22:13:15 -0700 |
| commit | 2694585fb38fcb2becaa7c65d8a1ec0b0b320b9b (patch) | |
| tree | 85b6f07137d9b9763b64771d758a45e93f72b43a /include/ruby/internal/encoding | |
| parent | c8c94bfb1edd6e1e045d503dfba9a96077306a27 (diff) | |
Fix race condition in test_self_stop
This test was relying on a sleep to synchronise the parent and child
processes. By having the child be the process that stops itself with
SIGSTOP, instead of the parent, we can actually properly wait for that
using waitpid2 and be notified of the stop.
This use of sleep to synchronise processes is potentially flaky and
caused failures under rr's `--chaos` mode.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12042
Diffstat (limited to 'include/ruby/internal/encoding')
0 files changed, 0 insertions, 0 deletions
