Do not print error for EPIPE or ECONNRESET on write()
This commit is contained in:
@@ -380,6 +380,9 @@ static ssize_t fd_write (int fd, const void *data, size_t size)
|
|||||||
if (errno==EAGAIN || errno==EINTR)
|
if (errno==EAGAIN || errno==EINTR)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (errno==EPIPE || errno==ECONNRESET)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (errno)
|
if (errno)
|
||||||
perror("write");
|
perror("write");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user