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?
1.Create a process that has an exit code of -1
2.Launch that process and use wait with no arguments
3.wait function will raise a TimeoutException, but there is no timeout, the
application exits with -1, so it should return -1 instead
What version of psutil are you using? What Python version?
It happens on 0.2.1 and on trunk as of 18/05/2011
On what operating system?
Tested on WinXP/Win7
Please provide any additional information below.
trunk/psutil/_psmswindows.py -> Line 167 & 168 (it checks for -1)
trunk/psutil/_psutil_mswindows.c -> function process_wait
I've modified the code in r971 to return and check for the actual WAIT_TIMEOUT
value instead of -1, so that should solve this issue. However, If the process
for some reason returns WAIT_TIMEOUT (0x00000102) then this will still occur.
Since -1 is a moderately likely return value and 0x00000102 less so, I think
that's a reasonable compromise.
From [email protected] on May 18, 2011 09:00:22
Original issue: http://code.google.com/p/psutil/issues/detail?id=164
The text was updated successfully, but these errors were encountered: