Do not print error for EPIPE or ECONNRESET on write()

This commit is contained in:
angt
2015-12-09 20:38:49 +01:00
parent ea1fa120eb
commit f3143eff83

View File

@@ -380,6 +380,9 @@ static ssize_t fd_write (int fd, const void *data, size_t size)
if (errno==EAGAIN || errno==EINTR)
return -1;
if (errno==EPIPE || errno==ECONNRESET)
return 0;
if (errno)
perror("write");