net: fix async connect to non-listening port.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Dec 2013 04:55:46 +0000 (15:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Dec 2013 04:55:46 +0000 (15:25 +1030)
commitfc8acdbbe2484794aa3c3bea8c00f0de80e48811
tree54dd1e01d34892c3adbe38827913434b7a7985bd
parent12ab811533406e22b78ce8b227474f1056375ae4
net: fix async connect to non-listening port.

In this case, Linux (at least, Ubuntu 13.10, x86-64 kernel 3.11.0-14-generic)
sets POLLHUP and gives no other error notification.

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