X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=uloop.c;h=38da5f67e890b83638251f6963919ac290efb23a;hp=bdda0cf7d244d41c7bf8db81012abad36288eee6;hb=0001d8ab26694f5f546da7e8f9d0575b49671500;hpb=bbdc3bdb0505437782f83d8d0480e759cbe7ea57;ds=sidebyside diff --git a/uloop.c b/uloop.c index bdda0cf..38da5f6 100644 --- a/uloop.c +++ b/uloop.c @@ -231,12 +231,12 @@ static void uloop_run_events(int timeout) if (!u) continue; - if(events[n].events & EPOLLERR) { + if(events[n].events & (EPOLLERR|EPOLLHUP)) { u->error = true; uloop_fd_delete(u); } - if(!(events[n].events & (EPOLLRDHUP|EPOLLIN|EPOLLOUT|EPOLLERR))) + if(!(events[n].events & (EPOLLRDHUP|EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP))) continue; if(events[n].events & EPOLLRDHUP)