]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
Move gengetopt targets to own Makefile.
[paraslash.git] / audioc.c
index 1402b64c492f24883e63d7391cee6cada4715591..0c2049ad71cb06a77297d502d7acae7b3265e79e 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -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;