diff options
author | Haibo Huang <hhb@google.com> | 2019-01-08 14:27:10 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2019-01-14 23:02:29 +0000 |
commit | 21926d584a5b118cbff81a9fb4329059011f87c6 (patch) | |
tree | 421b037a92a6d5209e8e4c30e8a830c262abe6d4 /docs/examples/ephiperfifo.c | |
parent | 98caa6f514b401764e3ac76041ff7e006f109e8c (diff) | |
download | external_curl-21926d584a5b118cbff81a9fb4329059011f87c6.tar.gz external_curl-21926d584a5b118cbff81a9fb4329059011f87c6.tar.bz2 external_curl-21926d584a5b118cbff81a9fb4329059011f87c6.zip |
Upgrade curl from 7.62.0 to 7.63.0
Test: build, boots, `vendor/google/tools/fake-ota on streaming` works
Change-Id: Iecd6120501e7a6d2c8b83c2891de62163a30f08a
Diffstat (limited to 'docs/examples/ephiperfifo.c')
-rw-r--r-- | docs/examples/ephiperfifo.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/examples/ephiperfifo.c b/docs/examples/ephiperfifo.c index e2737259..efb27b1b 100644 --- a/docs/examples/ephiperfifo.c +++ b/docs/examples/ephiperfifo.c @@ -257,7 +257,9 @@ static void remsock(SockInfo *f, GlobalInfo* g) { if(f) { if(f->sockfd) { - epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL); + if(epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL)) + fprintf(stderr, "EPOLL_CTL_DEL failed for fd: %d : %s\n", + f->sockfd, strerror(errno)); } free(f); } @@ -274,7 +276,9 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, (act & CURL_POLL_OUT ? EPOLLOUT : 0); if(f->sockfd) { - epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL); + if(epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL)) + fprintf(stderr, "EPOLL_CTL_DEL failed for fd: %d : %s\n", + f->sockfd, strerror(errno)); } f->sockfd = s; @@ -283,7 +287,9 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, ev.events = kind; ev.data.fd = s; - epoll_ctl(g->epfd, EPOLL_CTL_ADD, s, &ev); + if(epoll_ctl(g->epfd, EPOLL_CTL_ADD, s, &ev)) + fprintf(stderr, "EPOLL_CTL_ADD failed for fd: %d : %s\n", + s, strerror(errno)); } |