summaryrefslogtreecommitdiffstats
path: root/Lib/pty.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pty.py')
-rw-r--r--Lib/pty.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pty.py b/Lib/pty.py
index a70a865..cafbc9c 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -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)