[Bug #897935] Fix fd leak in pty.spawn(). Reported by James Henstridge; 2.3 bugfix candidate.
This commit is contained in:
parent
b7d8ce0275
commit
a2c9a98a0a
|
@ -175,3 +175,5 @@ def spawn(argv, master_read=_read, stdin_read=_read):
|
|||
except (IOError, OSError):
|
||||
if restore:
|
||||
tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
|
||||
|
||||
os.close(master_fd)
|
||||
|
|
Loading…
Reference in New Issue