aboutsummaryrefslogtreecommitdiffstats
path: root/src/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c
index dca134b..b26402f 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -324,7 +324,7 @@ wl_connection_read(struct wl_connection *connection)
msg.msg_flags = 0;
do {
- len = wl_os_recvmsg_cloexec(connection->fd, &msg, 0);
+ len = wl_os_recvmsg_cloexec(connection->fd, &msg, MSG_DONTWAIT);
} while (len < 0 && errno == EINTR);
if (len <= 0)