diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-27 14:25:05 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-27 14:25:05 +0000 |
commit | c8812bb0c830f595bad769f47f6d3cf07ee4ebf8 (patch) | |
tree | 46a40a0318a48dba6006661a3c5d2a600d0f93ce | |
parent | 07aec026b69b264e7d2115ae215aa1bacf911f07 (diff) | |
download | zsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.tar.gz zsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.tar.xz zsh-c8812bb0c830f595bad769f47f6d3cf07ee4ebf8.zip |
Andrej: don't close slave if not yet open (12084)
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Src/Modules/zpty.c | 1 |
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) { |