audioc: Make all fds non-blocking.
authorAndre Noll <maan@systemlinux.org>
Thu, 10 Apr 2008 04:55:31 +0000 (06:55 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 10 Apr 2008 04:55:31 +0000 (06:55 +0200)
audioc.c

index 1402b64c492f24883e63d7391cee6cada4715591..a8f88e315403955fbc04539595ad19236e13c9f2 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -106,7 +106,12 @@ int main(int argc, char *argv[])
        if (ret < 0)
                goto out;
        fd = ret;
        if (ret < 0)
                goto out;
        fd = ret;
-
+       ret = mark_fd_nonblocking(fd);
+       if (ret < 0)
+               goto out;
+       ret = mark_fd_nonblocking(STDOUT_FILENO);
+       if (ret < 0)
+               goto out;
        ret = send_cred_buffer(fd, args);
        if (ret < 0)
                goto out;
        ret = send_cred_buffer(fd, args);
        if (ret < 0)
                goto out;