mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-18 19:25:56 +00:00
std::process::Command lets a Windows child inherit every inheritable handle of the parent: a MySQL started by the launcher kept the caller's files and pipes open (found by the SQUID test, whose log stayed locked). Services now start through CreateProcessW with PROC_THREAD_ATTRIBUTE_HANDLE_LIST = [log, NUL], as Python's subprocess does. The MySQL client's outputs are read while it runs (a full pipe stopped it) and its last error line is reported. E2E on a disposable repack: launcher_e2e PASS again; squid_equivalence PASS: Rust and squid_playerbots.py leave identical journals, acore_playerbots tables (row counts) and playerbots.conf (4106 lines), and a second run of either changes nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>