Fix NameError in eventlet.green.os, thanks to David Ziegler. Fixes #53.

This commit is contained in:
Ryan Williams
2010-04-30 02:08:46 -07:00
parent 2841fae5a5
commit ee3a670b53
2 changed files with 3 additions and 2 deletions

View File

@@ -49,4 +49,5 @@ Thanks To
* Benoit Chesneau, bug report on green.os and patch to fix it
* Slant, better iterator implementation in tpool
* Ambroff, nice pygtk hub example
* Michael Carter, and Marcin Bachry, nice repro of a bug and good diagnosis leading to the fix
* Michael Carter, and Marcin Bachry, nice repro of a bug and good diagnosis leading to the fix
* David Ziegler, reporting issue #53

View File

@@ -72,7 +72,7 @@ def waitpid(pid, options):
if options & os_orig.WNOHANG != 0:
return __original_waitpid__(pid, options)
else:
new_options = options | os.WNOHANG
new_options = options | os_orig.WNOHANG
while True:
rpid, status = __original_waitpid__(pid, new_options)
if status >= 0: