fix missing close on pseudo tty

This commit is contained in:
Charlie Gordon 2014-03-04 00:36:58 +00:00
commit 325be8d5a6

View file

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