1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

Andrej: don't close slave if not yet open (12084)

This commit is contained in:
Sven Wischnowsky 2000-06-27 14:25:05 +00:00
parent 07aec026b6
commit c8812bb0c8
2 changed files with 2 additions and 1 deletions

View file

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

View file

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