Commit 920f0c99 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(read_server): If do_write_only, just return OOP_HALT when EPIPE or

	ECONNRESET on the server is seen--don't print anything.
parent 86829326
......@@ -326,6 +326,9 @@ read_server(oop_source *UNUSED(source),
if ((rv = read(fd, pos, sizeof(readbuf) - (pos - readbuf))) < 0)
{
if ((errno == EPIPE || errno == ECONNRESET) && do_write_only)
return OOP_HALT;
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR)
fail("read(server)");
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