mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +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
|
|
@ -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…
Add table
Add a link
Reference in a new issue