io: fix corner case in EPIPE handling.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Oct 2017 06:33:09 +0000 (17:03 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Oct 2017 06:33:09 +0000 (17:03 +1030)
commit261b10869ddbb4ac650ef8886c5052b1a8dbeecd
tree4797150b4891831ce7ba3a8e9e1308180b698ca0
parente2e70f5566cb8978b74de517c24a0f236d3d01ee
io: fix corner case in EPIPE handling.

If io_read is always called, we don't know that it will actually read,
so it might not notice error.  In that case, safest to fail immediately.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c