1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

close fd for pty-master in sub-shell

This commit is contained in:
Sven Wischnowsky 2000-05-08 11:06:27 +00:00
parent 17d342160a
commit fc9627e776
2 changed files with 3 additions and 0 deletions

@ -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

@ -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);