io: don't try to close() connection twice, remove shutdown logic.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Jan 2017 02:03:44 +0000 (12:33 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Jan 2017 02:03:44 +0000 (12:33 +1030)
commitce27b5647d5065c05db04c67e51574253275a3c2
treea1a41a48017d57de610826bfa4499e46f4c556e0
parentc8f5d9df177cb3326c2b27909b9925521490c7b9
io: don't try to close() connection twice, remove shutdown logic.

We were closing before calling del_fd, which also closed.

The shutdown() logic applies when a child and parent are using the
*same* socket fd to communicate to each other.  That's really unusual
(who would you connect to?), and should probably be done by the user.

Generally, you'd use socketpair() for this child-parent case.

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