aboutsummaryrefslogtreecommitdiff
path: root/backend/session
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2018-06-21 08:18:37 +1200
committerGitHub <noreply@github.com>2018-06-21 08:18:37 +1200
commitdf876a7cf8d36f7e85c66c24f00c026841fdc2fb (patch)
tree7da6b62076a7c349e65e61bd6267903be827c46c /backend/session
parent637479ce057eba1fbf48460ff239cb878f915b91 (diff)
parent482fc48c74361dd8b1adf0f5c14abd8e82f35bf6 (diff)
Merge pull request #1073 from tobiasblass/fix_recvmsg_endless_loop
FIX: Suprocess loops endlessly when the control socket closes.
Diffstat (limited to 'backend/session')
-rw-r--r--backend/session/direct-ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/session/direct-ipc.c b/backend/session/direct-ipc.c
index 6c69b70a..f8ba07f7 100644
--- a/backend/session/direct-ipc.c
+++ b/backend/session/direct-ipc.c
@@ -130,7 +130,7 @@ static void communicate(int sock) {
int drm_fd = -1;
bool running = true;
- while (running && recv_msg(sock, &drm_fd, &msg, sizeof(msg)) >= 0) {
+ while (running && recv_msg(sock, &drm_fd, &msg, sizeof(msg)) > 0) {
switch (msg.type) {
case MSG_OPEN:
errno = 0;