From 3f885cd259fef0d8522bfc358defdc2345c5923a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 10 Apr 2008 06:55:31 +0200 Subject: [PATCH] audioc: Make all fds non-blocking. --- audioc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/audioc.c b/audioc.c index 1402b64c..a8f88e31 100644 --- 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; -- 2.39.5