summary refs log tree commit diff
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
parent17d342160ae1c59687b61332bd4dee5e62bd509a (diff)
downloadzsh-fc9627e776d81372e5c1dcc69ad165372dd172df.tar.gz
zsh-fc9627e776d81372e5c1dcc69ad165372dd172df.tar.xz
zsh-fc9627e776d81372e5c1dcc69ad165372dd172df.zip
close fd for pty-master in sub-shell
-rw-r--r--ChangeLog2
-rw-r--r--Src/Modules/zpty.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index db511ca22..3d5f6150b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
 
 2000-05-08  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 11255: Src/Modules/zpty.c: close fd for pty-master in sub-shell
+	
 	* 11253: Completion/Base/_arguments, Src/Zle/computil.c: more
  	problems with optional arguments in _arguments
 	
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);