From: Michael Poole Date: Sun, 23 Mar 2008 15:24:55 +0000 (-0400) Subject: src/ioset-select.c: Populate and use an fdset for FDs with exceptions. X-Git-Tag: v1.4.0-rc3~32 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=508125cbe26502c05f141b9170f47852748f87e6 src/ioset-select.c: Populate and use an fdset for FDs with exceptions. --- diff --git a/src/ioset-select.c b/src/ioset-select.c index 86b23f2..fce797b 100644 --- a/src/ioset-select.c +++ b/src/ioset-select.c @@ -36,7 +36,9 @@ extern int clock_skew; static struct io_fd **fds; static unsigned int fds_size; -static fd_set read_fds, write_fds; +static fd_set read_fds; +static fd_set write_fds; +static fd_set except_fds; static int ioset_select_init(void) @@ -61,6 +63,7 @@ ioset_select_remove(struct io_fd *fd, int closed) { FD_CLR(fd->fd, &read_fds); FD_CLR(fd->fd, &write_fds); + FD_CLR(fd->fd, &except_fds); (void)closed; } @@ -87,12 +90,11 @@ debug_fdsets(const char *msg, int nfds, fd_set *read_fds, fd_set *write_fds, fd_ struct timeval now; for (pos=ii=0; ii