]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
eloop doesn't check errors atm
authorRoy Marples <roy@marples.name>
Sun, 11 Nov 2012 00:03:28 +0000 (00:03 +0000)
committerRoy Marples <roy@marples.name>
Sun, 11 Nov 2012 00:03:28 +0000 (00:03 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index c856c7f3be2fe32a02e87f446bb0b0a519c499ee..ebbf37185d6e95c9a0a849e4ccd128e0e630c6e8 100644 (file)
--- 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;