projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a605e
)
audioc: Make all fds non-blocking.
author
Andre Noll
<maan@systemlinux.org>
Thu, 10 Apr 2008 04:55:31 +0000
(06:55 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 10 Apr 2008 04:55:31 +0000
(06:55 +0200)
audioc.c
patch
|
blob
|
history
diff --git
a/audioc.c
b/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;
-
+ 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;