Implement some sort of timeout

This commit is contained in:
2024-10-01 23:13:28 +02:00
parent 69e053d5da
commit 9196bda1b1
2 changed files with 65 additions and 27 deletions

View File

@@ -83,7 +83,7 @@ func BuildProcessMap() (*ProcessMap, error) {
for err == nil {
tree.add(&pe32)
i++
if i > 500 {
if i > 5000 {
break
}
err = windows.Process32Next(snapshot, &pe32)