gui.c: make command pipe a nonblocking fd
authorAndre Noll <maan@systemlinux.org>
Mon, 5 Feb 2007 21:22:52 +0000 (22:22 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 5 Feb 2007 21:22:52 +0000 (22:22 +0100)
gui.c

diff --git a/gui.c b/gui.c
index 9ad5aa9..7588f2b 100644 (file)
--- 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();
 }