From c103b1631056eea2e63adfc8261c316c8a16928b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 3 Jan 2014 18:25:44 +0000 Subject: [PATCH] gui: Don't close command fds if a key was pressed. Killing the command is enough, as command_post_select() will notice the EOF condition and close these fds. --- gui.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gui.c b/gui.c index 49f59513..6928e0b3 100644 --- a/gui.c +++ b/gui.c @@ -1079,14 +1079,6 @@ check_return: case COMMAND_MODE: ret = wgetch(top.win); if (ret != ERR && ret != KEY_RESIZE) { - if (command_fds[0] >= 0) { - close(command_fds[0]); - command_fds[0] = -1; - } - if (command_fds[1] >= 0) { - close(command_fds[1]); - command_fds[1] = -1; - } if (cmd_pid) kill(cmd_pid, SIGTERM); return -1; -- 2.30.2