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) ...@@ -116,8 +116,10 @@ static void *Thread (void *data)
#else #else
j = writev (fd, iov, 1); j = writev (fd, iov, 1);
#endif #endif
if (j == -1) if (j <= 0)
{ {
if (j == 0)
errno = EPIPE;
msg_Err (demux, "cannot write data (%m)"); msg_Err (demux, "cannot write data (%m)");
error = true; error = true;
break; 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