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:
parent
07aec026b6
commit
c8812bb0c8
2 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue