You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 452a8b0
Browse filesBrowse the repository at this point in the historyBrowse files
cross-platform: replace os.kill/fcntl with psutil/filelock; fix Windows encoding
Source changes:
- restart_daemon.py: replace fcntl.flock with filelock.FileLock (cross-platform),
replace os.kill(pid, 15/9) with psutil.Process.terminate/kill
- ai_monitor.py: replace os.kill(pid, 0) with psutil.pid_exists,
replace os.kill(pid, SIGTERM) with psutil.Process.terminate
- client.py: replace os.kill(pid, 0) with psutil.pid_exists
- install.py: replace os.kill(pid, 0) with psutil.pid_exists
Test changes:
- test_daemon_restart_safety.py: replace placeholder tests with real
filelock RAII, thread safety, multiprocess exclusion, and psutil
lifecycle tests (11 tests, 10 run in CI)
- All 17 test files: add encoding="utf-8" to .read_text() calls to
fix Windows UnicodeDecodeError (cp1252 default codec)
0 commit comments