summary refs log tree commit diff
diff options
context:
space:
mode:
-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);