upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-08-26 22:45:24 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-08-26 22:45:24 +0000
commit72242aadd602ee68c9a052386cfbd342b75a1977 (patch)
tree3caf6c71f52a1f45e6a5413922244283ad128bea /src/rpc.cpp
parent9b0535312a77a97b06837bbef51c1fe4b7f3b0da (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/rpc.cpp')
0 files changed, 0 insertions, 0 deletions