Skip to content
  • KJ Tsanaktsidis's avatar
    2694585f
    Fix race condition in test_self_stop · 2694585f
    KJ Tsanaktsidis authored
    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.
    2694585f
    Fix race condition in test_self_stop
    KJ Tsanaktsidis authored
    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.
Loading