mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
tighten up except - os.close only raises OSError
see bug 411881
This commit is contained in:
parent
8e5fd53be0
commit
1c90d7ab3c
@ -62,7 +62,7 @@ class Popen3:
|
||||
for i in range(3, MAXFD):
|
||||
try:
|
||||
os.close(i)
|
||||
except:
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
os.execvp(cmd[0], cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user