From f76b60d3199160172b6cdd48a957ac7921911a8f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 29 Dec 2008 14:42:54 +0200 Subject: 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. --- audio/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit