diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-08-26 22:45:24 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-08-26 22:45:24 +0000 |
| commit | 72242aadd602ee68c9a052386cfbd342b75a1977 (patch) | |
| tree | 3caf6c71f52a1f45e6a5413922244283ad128bea /src/btfrv.cpp | |
| parent | 9b0535312a77a97b06837bbef51c1fe4b7f3b0da (diff) | |
tor: stop racing the watchdog for the managed-Tor pid
BtfStopManagedTor read, waited on and signalled g_managedTorPid without
holding cs_managedTor, while the watchdog concurrently reaps the same child
and resets it. If the watchdog won, the stop path spun ten seconds on ECHILD
and then sent SIGKILL to a stale, potentially recycled pid. Snapshot the pid
under the lock, treat ECHILD as already-exited, and only clear the global if
it still holds our pid.
Diffstat (limited to 'src/btfrv.cpp')
0 files changed, 0 insertions, 0 deletions