1
0
Fork 0
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:
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

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