io: call finish function after fd is actually closed.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 2 Mar 2014 06:05:10 +0000 (16:35 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 2 Mar 2014 06:05:10 +0000 (16:35 +1030)
commit710d42d071a10093077d30d6e521f9599a9bc997
tree65e59b704124736ef489a9591277e3853df79ce1
parentecf907f7e6b41ba69a10b20b2cb5743ed9cdf919
io: call finish function after fd is actually closed.

This turns out to be the right sequence for pettycoin, which
wants to reap the child in the finish routine.  From that sample
size of 1, this is clearly the Right Thing!

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