mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Issue #16706: get rid of os.error
This commit is contained in:
parent
a191959849
commit
ad28c7f9da
33 changed files with 4089 additions and 4123 deletions
|
@ -532,7 +532,7 @@ class ForkingMixIn:
|
|||
# children.
|
||||
try:
|
||||
pid, status = os.waitpid(0, 0)
|
||||
except os.error:
|
||||
except OSError:
|
||||
pid = None
|
||||
if pid not in self.active_children: continue
|
||||
self.active_children.remove(pid)
|
||||
|
@ -545,7 +545,7 @@ class ForkingMixIn:
|
|||
for child in self.active_children:
|
||||
try:
|
||||
pid, status = os.waitpid(child, os.WNOHANG)
|
||||
except os.error:
|
||||
except OSError:
|
||||
pid = None
|
||||
if not pid: continue
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue