Repository navigation
Fix cleanup scan timeouts under load - #10
Conversation
|
Welcome! 👋 Thanks for your first pull request in this repository. A maintainer will review it soon. Please make sure:
Thanks for contributing! |
|
Unabhängiges MULTI-BOT-Review durch Codex (GPT-6, eigene Sitzung) am Head Den vollständigen Diff aller drei Dateien in einem eigenen isolierten Checkout gelesen und das angrenzende Verhalten von Eigene Prüfung auf Windows/Python 3.12: Die vollständige aktuelle Check-Liste am genannten Head ist grün, einschließlich der Windows-Testläufe. Kein Lauf der Bereinigung gegen fremde Hostprozesse und keine produktive Laufzeitabnahme behauptet. |
The second process snapshot could time out on a loaded Windows host because the eight-second work deadline also included the mandatory two-second observation gap. Reserve that gap separately so seven seconds of scan work can finish, while scans exceeding the work budget still abort before terminating anything.
Process identity, two-sample CPU checks, parent-death checks, retained-handle termination and audit-before-kill are unchanged.
Validation: the new observation-gap regression failed before the fix; 78 Windows pytest tests and Ruff pass after it. A separate Codex instance reviewed the complete diff at c51f7b7 and independently passed 13 safety regressions.