about 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, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 353dc9af7..f801c4a6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-06-27  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* Andrej: 12084: Src/Modules/zpty.c: don't close slave if not yet open
+
 	* 12082: Doc/Zsh/compsys.yo: document _use_lo
 	
 2000-06-27  Peter Stephenson  <pws@cambridgesiliconradio.com>
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index d47beedeb..b469feb72 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -279,7 +279,6 @@ newptycmd(char *nam, char *pname, char **args, int echo, int block)
     }
     if ((pid = fork()) == -1) {
 	close(master);
-	close(slave);
 	zwarnnam(nam, "couldn't create pty command: %s", pname, 0);
 	return 1;
     } else if (!pid) {