On Windows the Tauri updater writes its PID to the update marker, then spawns 'hermes update' via the venv shim. The child receives HERMES_UPDATE_HANDOFF_PID to recognize the parent lock, but on some Windows configs the env var is not inherited through the shim subprocess chain, deadlocking every GUI update. Fix: when the env-var handoff fails, fall back to walking the Windows process tree via wmic /format:csv to collect ancestor PIDs. If the marker PID is found in the ancestor chain, treat it as our own orchestrating parent and allow the update. Also fixes wmic output encoding on localized Windows (GBK/CP936) by using /format:csv which produces clean UTF-8 output.
2 lines
8 B
Plaintext
2 lines
8 B
Plaintext
xenodmc
|