giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.32k stars 1.39k forks source link

[OpenBSD, NetBSD] fix zombie process with no ctime #2289

Closed giampaolo closed 1 year ago

giampaolo commented 1 year ago

Summary

Zombie processes on Open/NetBSD have a creation time of 0.0. Modify __eq__ so that it takes this into account, fixing is_running() return False for a process which turned into a zombie.