tor/changes/bug13291-spawn-test-race-condition
teor b827a08284 Stop spawn test failures due to a race condition with SIGCHLD on process exit
When a spawned process forks, fails, then exits very quickly, (this
typically occurs when exec fails), there is a race condition between the
SIGCHLD handler updating the process_handle's fields, and checking the
process status in those fields. The update can occur before or after the
spawn tests check the process status.

We check whether the process is running or not running (rather than just
checking if it is running) to avoid this issue.
2014-09-29 09:37:53 -04:00

5 lines
186 B
Plaintext

o Minor bugfixes:
- Stop spawn test failures due to a race condition between the SIGCHLD
handler updating the process status, and the test reading it.
Fixes bug 13291.