From da1a145bf2f9d1a57c3359372695894247fef704 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 5 Feb 2007 22:22:52 +0100 Subject: [PATCH] gui.c: make command pipe a nonblocking fd --- gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui.c b/gui.c index 9ad5aa98..7588f2b2 100644 --- a/gui.c +++ b/gui.c @@ -989,6 +989,7 @@ static int client_cmd_cmdline(char *cmd) if (ret < 0) return -1; command_pipe = fds[1]; + mark_fd_nonblock(command_pipe); return send_output(); } @@ -1004,6 +1005,7 @@ static int display_cmd(char *cmd) if (para_exec_cmdline_pid(&cmd_pid, cmd, fds) < 0) return -1; command_pipe = fds[1]; + mark_fd_nonblock(command_pipe); return send_output(); } -- 2.39.5