diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-12-15 15:16:26 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-12-15 15:16:26 +0000 |
commit | a10aa06ee1ba782b446357cecd9361953954b776 (patch) | |
tree | 78ede4d3b49e8a5530ed8d066f68de71102c0e83 /mailbox/mutil.c | |
parent | af24726ac5249e01cef0be547ff5c135244a4b53 (diff) | |
download | mailutils-a10aa06ee1ba782b446357cecd9361953954b776.tar.gz mailutils-a10aa06ee1ba782b446357cecd9361953954b776.tar.bz2 |
(mu_fd_wait): Handle MU_STREAM_READY_EX
Diffstat (limited to 'mailbox/mutil.c')
-rw-r--r-- | mailbox/mutil.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mailbox/mutil.c b/mailbox/mutil.c index 08952c00e..7057b17e9 100644 --- a/mailbox/mutil.c +++ b/mailbox/mutil.c @@ -1269,15 +1269,18 @@ mu_scheme_autodetect_p (const char *scheme, const char **path) int mu_fd_wait (int fd, int *pflags, struct timeval *tvp) { - fd_set rdset, wrset; + fd_set rdset, wrset, exset; int rc; FD_ZERO (&rdset); FD_ZERO (&wrset); + FD_ZERO (&exset); if ((*pflags) & MU_STREAM_READY_RD) FD_SET (fd, &rdset); if ((*pflags) & MU_STREAM_READY_WR) FD_SET (fd, &wrset); + if ((*pflags) & MU_STREAM_READY_EX) + FD_SET (fd, &exset); do { @@ -1301,6 +1304,8 @@ mu_fd_wait (int fd, int *pflags, struct timeval *tvp) *pflags |= MU_STREAM_READY_RD; if (FD_ISSET (fd, &wrset)) *pflags |= MU_STREAM_READY_WR; + if (FD_ISSET (fd, &exset)) + *pflags |= MU_STREAM_READY_EX; } return 0; } |