mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
b827a08284
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.
5 lines
186 B
Plaintext
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.
|