io: handle duplex corner cases.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Nov 2013 02:23:57 +0000 (12:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Nov 2013 02:23:57 +0000 (12:53 +1030)
commitdded32f2b03fca526271e35671fa36d299880429
tree0f894f31fa138315bf95ffc8c1a527484adbef0c
parent83d4e1285dec87fa54043377eafd1b3bf9b0c53f
io: handle duplex corner cases.

Especially where we have just done a read and spin off a duplex to do a read
as well.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c
ccan/io/poll.c
ccan/io/test/run-14-duplex-both-read-DEBUG.c [new file with mode: 0644]
ccan/io/test/run-14-duplex-both-read.c [new file with mode: 0644]