bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] mu_fd_wait


From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] mu_fd_wait
Date: Thu, 18 Jun 2009 13:17:07 +0300

Andrew Barnes <address@hidden> ha escrit:

>    The function mu_fd_wait in mailbox/mutil.c does not appear to be
>    monitoring the passed file descriptor for exceptions.

Thanks. I installed the following patch:

diff --git a/mailbox/mutil.c b/mailbox/mutil.c
index 34a85b4..69729da 100644
--- a/mailbox/mutil.c
+++ b/mailbox/mutil.c
@@ -1303,10 +1303,10 @@ mu_fd_wait (int fd, int *pflags, struct timeval *tvp)
       if (tvp)
        {
          struct timeval tv = *tvp; 
-         rc = select (fd + 1, &rdset, &wrset, NULL, &tv);
+         rc = select (fd + 1, &rdset, &wrset, &exset, &tv);
        }
       else
-       rc = select (fd + 1, &rdset, &wrset, NULL, NULL);
+       rc = select (fd + 1, &rdset, &wrset, &exset, NULL);
     }
   while (rc == -1 && errno == EINTR);

Regards,
Sergey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]