Verified Commit 0402c75a authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Handle one more EPIPE

parent d46715d0
Pipeline #14351 passed with stage
in 1 minute and 37 seconds
......@@ -113,6 +113,12 @@ public:
ssize_t sent = send(fd(), position, rest, MSG_NOSIGNAL);
switch (sent) {
case -1:
if (errno == EPIPE) {
// Make sure it is not included
close(fd());
inactive = true;
throw TmpError("Temporary error");
}
if (errno == EINTR)
continue;
else
......
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