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 1402b64..a8f88e3 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;
-
+       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;