From: Roy Marples Date: Sun, 11 Nov 2012 00:03:28 +0000 (+0000) Subject: eloop doesn't check errors atm X-Git-Tag: v5.99.3~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b894367ccf03d2e7961b37881d657bdc2d61b22f;p=thirdparty%2Fdhcpcd.git eloop doesn't check errors atm --- diff --git a/eloop.c b/eloop.c index c856c7f3..ebbf3718 100644 --- a/eloop.c +++ b/eloop.c @@ -287,7 +287,7 @@ _noreturn void start_eloop(const sigset_t *cursigs) { int n, max_fd; - fd_set read_fds, error_fds; + fd_set read_fds; struct event *e; struct timeout *t; struct timeval tv; @@ -316,7 +316,6 @@ start_eloop(const sigset_t *cursigs) max_fd = -1; FD_ZERO(&read_fds); - FD_ZERO(&error_fds); for (e = events; e; e = e->next) { FD_SET(e->fd, &read_fds); if (e->fd > max_fd) @@ -327,8 +326,7 @@ start_eloop(const sigset_t *cursigs) exit(EXIT_FAILURE); } - n = pselect(max_fd + 1, &read_fds, NULL, &error_fds, - tsp, cursigs); + n = pselect(max_fd + 1, &read_fds, NULL, NULL, tsp, cursigs); if (n == -1) { if (errno == EINTR) continue;