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
That's correct as the real process is not "sleep", it's the shell ("sh"), which is still alive as a zombie, and zombies are technically still running and querable:
is_running() always returns true on a process created by psutil.Popen(), even after the process is already dead.
This is the code I ran on ipython. At command [79],
pgrep
already confirmed that the process was not there, but at [80],is_running()
returned true.This is some version information:
The text was updated successfully, but these errors were encountered: