commit | f76b60d3199160172b6cdd48a957ac7921911a8f | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@nokia.com> | Mon Dec 29 14:42:54 2008 +0200 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Mon Dec 29 14:42:54 2008 +0200 |
tree | fd2c901e2d4321d117c7875616bf0f1fdcda187b | |
parent | a6cb57cd010c728e97bb92f7ae6bbc12d61b66c8 [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.
diff --git a/audio/unix.c b/audio/unix.c index ed7df0b..d43f4d7 100644 --- a/audio/unix.c +++ b/audio/unix.c
@@ -1117,7 +1117,7 @@ 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;