fix missing close on pseudo tty
This commit is contained in:
parent
93dbac129d
commit
325be8d5a6
1 changed files with 1 additions and 0 deletions
1
shell.c
1
shell.c
|
|
@ -1300,6 +1300,7 @@ static void shell_close(EditBuffer *b)
|
|||
}
|
||||
if (s->pty_fd >= 0) {
|
||||
set_read_handler(s->pty_fd, NULL, NULL);
|
||||
close(s->pty_fd);
|
||||
s->pty_fd = -1;
|
||||
}
|
||||
qe_free(&b->priv_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue