From: Andre Noll Date: Mon, 5 Feb 2007 21:22:52 +0000 (+0100) Subject: gui.c: make command pipe a nonblocking fd X-Git-Tag: v0.2.15~36 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=da1a145bf2f9d1a57c3359372695894247fef704 gui.c: make command pipe a nonblocking fd --- 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(); }