fix waitpid returning (0, 0)

This commit is contained in:
Vishvananda Ishaya
2012-11-08 16:47:31 -08:00
parent ea40abea61
commit ed2bca389b

View File

@@ -77,7 +77,7 @@ def waitpid(pid, options):
new_options = options | os_orig.WNOHANG
while True:
rpid, status = __original_waitpid__(pid, new_options)
if status >= 0:
if rpid and status >= 0:
return rpid, status
greenthread.sleep(0.01)