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
What steps will reproduce the problem?
Run some script and make it raise NoSuchProcess or AccessDenied exception.
Example:
proc = subprocess.Popen('input', shell=1)
p = psutil.Process(proc.pid)
p.name
proc.kill()
proc.wait()
print p.get_children()
What is the expected output?
What do you see instead?
The exception string will look like:
"psutil.error.NoSuchProcess: process no longer exists"
This message is pretty anonymous and doesn't give any information
about the process which caused the exception.
This is particularly painful if the error suddenly occurs when
running a program which iterates over multiple processes.
When this happens it would be helpful for debugging to know *what*
process caused the exception, by providing at least its PID and, if available, its name.
Possible variants:
"psutil.error.NoSuchProcess: process no longer exists (pid=100)"
"psutil.error.NoSuchProcess: process no longer exists (pid=100, name='python')"
"psutil.error.AccessDenied: (pid=100)"
"psutil.error.AccessDenied: (pid=100, name='python')"
From g.rodola on October 08, 2010 00:16:44
Original issue: http://code.google.com/p/psutil/issues/detail?id=113
The text was updated successfully, but these errors were encountered: