X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Fpoll.c;h=42ed67ad278a0c870c9c4a98baa015eb0ed4e60a;hb=306b6b0e89957bc1f2faa0a9b30a8398d1f40dfc;hp=06e3b59104d0f4e4d9d010e86109f31d59af7c04;hpb=3a7b8a8a8081ebbb6457527de376dec6264bc381;p=ccan diff --git a/ccan/io/poll.c b/ccan/io/poll.c index 06e3b591..42ed67ad 100644 --- a/ccan/io/poll.c +++ b/ccan/io/poll.c @@ -338,7 +338,7 @@ void *io_loop(void) /* debug can recurse; anything can change. */ if (doing_debug()) break; - } else if (events & POLLHUP) { + } else if (events & (POLLHUP|POLLNVAL|POLLERR)) { r--; set_current(c); set_plan(c, io_close());