about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 11:06:27 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 11:06:27 +0000
commitfc9627e776d81372e5c1dcc69ad165372dd172df (patch)
tree81f45f9fc0137da5f4ee71dcc18ae630e85549c0 /Src/Modules
parent17d342160ae1c59687b61332bd4dee5e62bd509a (diff)
downloadzsh-fc9627e776d81372e5c1dcc69ad165372dd172df.tar.gz
zsh-fc9627e776d81372e5c1dcc69ad165372dd172df.tar.xz
zsh-fc9627e776d81372e5c1dcc69ad165372dd172df.zip
close fd for pty-master in sub-shell
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 01cc4dd3e..4dccf73ba 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -352,6 +352,7 @@ newptycmd(char *nam, char *pname, char **args, int echo, int block)
 	dup2(slave, 2);
 
 	close(slave);
+	close(master);
 
 	if (SHTTY != -1)
 	    close(SHTTY);