From 325be8d5a62f98eac52be8bb28d18c3cdcf4acbe Mon Sep 17 00:00:00 2001 From: Charlie Gordon Date: Tue, 4 Mar 2014 00:36:58 +0000 Subject: [PATCH] fix missing close on pseudo tty --- shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shell.c b/shell.c index 50dc599..b2f2e97 100644 --- a/shell.c +++ b/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);