summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-27 14:25:05 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-27 14:25:05 +0000
commitc8812bb0c830f595bad769f47f6d3cf07ee4ebf8 (patch)
tree46a40a0318a48dba6006661a3c5d2a600d0f93ce
parent07aec026b69b264e7d2115ae215aa1bacf911f07 (diff)
downloadzsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.tar.gz
zsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.tar.xz
zsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.zip
Andrej: don't close slave if not yet open (12084)
-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) {