client: Don't make EPIPE fatal if triggered when flushing
client: Don't make EPIPE fatal if triggered when flushing

If flushing hits EPIPE it should not make it a fatal error since it
would make it impossible to process the rest of the data available in
the buffer. Instead, let reading the socket make EPIPE fatal, letting
the client have the possibility to process the last messages including
any error causing the termination.

Signed-off-by: Jonas Ådahl <67dcd8a17e758192e0cbb577ce1d62cc7da6cf49@gmail.com>
Reviewed-by: Daniel Stone <62e7e355d5d8400fa8384448796af0bf6be4ffae@collabora.com>

sir-murray/wayland,mchalupa/wayland,sir-murray/wayland,mchalupa/wayland,sir-murray/wayland,mchalupa/wayland