commit | 5540b97dc0d3245e6ff6843be3227510b415aca0 | [log] [tgz] |
---|---|---|
author | Patrick Scott <patrick@pmscott.com> | Tue Jan 02 11:50:54 2024 -0500 |
committer | GitHub <noreply@github.com> | Tue Jan 02 16:50:54 2024 +0000 |
tree | fb59ad7086beda51409c2b1ad8d70711f74dce32 | |
parent | b5d0db5724a3902a0e265d01fdf165d435214425 [diff] |
Fix a race detected only if a test times out (#3808) * Fix a race detected only if a test times out I believe this can happen because the goroutine is started before the command is started. Start the process first, then on success, start the signal handler. Add a test for regression. I verified the test fails without my change to wrap.go and the race is from the signal handling goroutine. * Register signal handler before cmd.Start()