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?
Apply the following change (based on r1250 ) and run tests
--- test/test_psutil.py (revisione 1250)
+++ test/test_psutil.py (copia locale)
@@ -581,7 +581,7 @@
grandson_pid = int(sproc.stdout.read())
grandson_proc = psutil.Process(grandson_pid)
try:
- self.assertRaises(psutil.TimeoutExpired, grandson_proc.wait, 0.01)
+ self.assertRaises(psutil.TimeoutExpired, grandson_proc.wait)
grandson_proc.kill()
ret = grandson_proc.wait()
self.assertEqual(ret, None)
What is the expected output?
Normal CPU usage,
What do you see instead?
The CPU usage bumps up at 100%.
Please use labels and text to provide additional information.
wait() on POSIX uses a busy loop to check whether the process is gone.
To avoid hogging CPU resources we use a time.sleep() call but in case we
attempt to wait() for a process which is not a children of the current one,
time.sleep() will never get called.
From g.rodola on January 19, 2012 20:49:23
Original issue: http://code.google.com/p/psutil/issues/detail?id=244
The text was updated successfully, but these errors were encountered: