Commit 0653497b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Decomp: catch 0 write

parent f232b262
......@@ -116,8 +116,10 @@ static void *Thread (void *data)
#else
j = writev (fd, iov, 1);
#endif
if (j == -1)
if (j <= 0)
{
if (j == 0)
errno = EPIPE;
msg_Err (demux, "cannot write data (%m)");
error = true;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment