bug-hurd
[Top][All Lists]
Advanced

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

Re: more info about sudo/pflocal/syslogd problem


From: Marcus Brinkmann
Subject: Re: more info about sudo/pflocal/syslogd problem
Date: Sun, 28 Oct 2001 14:39:06 +0100
User-agent: Mutt/1.3.23i

Hi,

The type variable was declared const, so here is a new version.
(I find this resetting of type a bit strange, but it is what is used in the
select case, so I copy it).

2001-10-28  Marcus Brinkmann  <marcus@gnu.org>

        * hurd/hurdselect.c (_hurd_select): Set type to zero if
        SELECT_RETURNED is not set before filling in the `revents'
        members of the user's array.

--- hurdselect.c.old    Sun Oct 28 03:52:43 2001
+++ hurdselect.c        Sun Oct 28 14:37:16 2001
@@ -395,8 +395,11 @@
     /* Fill in the `revents' members of the user's array.  */
     for (i = 0; i < nfds; ++i)
       {
-       const int type = d[i].type;
+       int type = d[i].type;
        int_fast16_t revents = 0;
+
+       if ((type & SELECT_RETURNED) == 0)
+         type = 0;
 
        if (type & SELECT_READ)
          revents |= POLLIN;

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

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