From: Andre Noll Date: Fri, 3 Jan 2014 18:25:44 +0000 (+0000) Subject: gui: Don't close command fds if a key was pressed. X-Git-Tag: v0.5.3~12^2~40 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c103b1631056eea2e63adfc8261c316c8a16928b;p=paraslash.git 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. --- 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;