]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 9ad5aa985703c8371eb15e5cc2f94a3c7a64ad01..7588f2b2ec7f7136962c4d5b4b7b086ff1648b17 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();
 }