summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-29 14:42:54 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-29 14:42:54 +0200
commitf76b60d3199160172b6cdd48a957ac7921911a8f (patch)
treefd2c901e2d4321d117c7875616bf0f1fdcda187b /audio
parenta6cb57cd010c728e97bb92f7ae6bbc12d61b66c8 (diff)
Fix receiving data over the unix socket
Don't use MSG_WAITALL since we can (and often will) receive less data than MTU with the new IPC.
Diffstat (limited to 'audio')
-rw-r--r--audio/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/unix.c b/audio/unix.c
index ed7df0b7..d43f4d7d 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -1117,7 +1117,7 @@ static gboolean client_cb(GIOChannel *chan, GIOCondition cond, gpointer data)
memset(buf, 0, sizeof(buf));
- len = recv(client->sock, buf, sizeof(buf), MSG_WAITALL);
+ len = recv(client->sock, buf, sizeof(buf), 0);
if (len < 0) {
error("recv: %s (%d)", strerror(errno), errno);
goto failed;