summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorSebastian Reuße <seb@wirrsal.net>2017-05-24 21:35:51 +0200
committerwm4 <wm4@nowhere>2017-05-24 21:55:22 +0200
commitb7d0dfaf1a8fe33f555679ebaf132caa4d9842c9 (patch)
tree311eb1240e313eae7ac73036096691fa4549d67b /input
parent83a9b0bc4840c1bb203c23194c5f07f898999034 (diff)
downloadmpv-b7d0dfaf1a8fe33f555679ebaf132caa4d9842c9.tar.bz2
mpv-b7d0dfaf1a8fe33f555679ebaf132caa4d9842c9.tar.xz
ipc-unix: don’t truncate the message on EAGAIN
Fixes #4452.
Diffstat (limited to 'input')
-rw-r--r--input/ipc-unix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/input/ipc-unix.c b/input/ipc-unix.c
index e4b98edfc9..f26e0cadde 100644
--- a/input/ipc-unix.c
+++ b/input/ipc-unix.c
@@ -78,12 +78,9 @@ static int ipc_write_str(struct client_arg *client, const char *buf)
return 0;
}
- if (errno == EINTR)
+ if (errno == EINTR || errno == EAGAIN)
continue;
- if (errno == EAGAIN)
- return 0;
-
return rc;
}