mirror of
https://github.com/smittix/intercept.git
synced 2026-07-02 06:48:58 -07:00
Fix SDR device lock-up from unreleased device registry on process crash
Stream threads for sensor, pager, acars, rtlamr, dmr, and dsc modes never called release_sdr_device() when their SDR process crashed, leaving devices permanently locked in the registry. Also fixes orphaned companion processes (rtl_fm, rtl_tcp) not being killed on crash, start path failures leaking processes, DMR stop handler missing lock, and listening post/audio websocket pkill nuking all system-wide rtl_fm processes. Wires up register_process()/unregister_process() so the atexit/signal cleanup safety net actually works, and adds rtl_tcp, rtl_power, rtlamr, ffmpeg to the killall endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -671,7 +671,8 @@ def kill_all() -> Response:
|
||||
'rtl_fm', 'multimon-ng', 'rtl_433',
|
||||
'airodump-ng', 'aireplay-ng', 'airmon-ng',
|
||||
'dump1090', 'acarsdec', 'direwolf', 'AIS-catcher',
|
||||
'hcitool', 'bluetoothctl', 'dsd'
|
||||
'hcitool', 'bluetoothctl', 'dsd',
|
||||
'rtl_tcp', 'rtl_power', 'rtlamr', 'ffmpeg',
|
||||
]
|
||||
|
||||
for proc in processes_to_kill:
|
||||
|
||||
Reference in New Issue
Block a user