hydra_log.cpp: localtime_r → _localtime64_s on Win32.
session_manager.cpp: Remove stale sys/socket.h include (unused,
GANL abstracts all networking).
hydra_main.cpp: Replace sigaction with SetConsoleCtrlHandler on
Win32. Replace getpass() with console API readPassword(). Guard
recv() call with platform-appropriate types.
account_manager.cpp: Replace crypt_r (glibc-only) with
PBKDF2-HMAC-SHA256 via OpenSSL on Win32. Guard file permission
checks (S_IROTH/S_IWOTH) as POSIX-only. Use CreateFileA/WriteFile
for master key generation on Win32.
process_manager.cpp/h: Full Win32 implementation using
CreateProcess, TerminateProcess, WaitForSingleObject,
GetExitCodeProcess. HANDLE instead of pid_t. CTRL_BREAK_EVENT
for graceful shutdown instead of SIGTERM.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fork/exec local game processes with /start, /stop, /restart commands.
Autostart on first /connect if configured. Child reaping via
waitpid(WNOHANG) in the event loop, with SIGKILL escalation after 10s
if SIGTERM doesn't terminate the process.
This completes Phase 2 (multi-game and process management).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>