]> granicus.if.org Git - sudo/commit
Get rid of cur and pending pointers in struct sudo_event_base. We
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Oct 2013 17:13:45 +0000 (11:13 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Oct 2013 17:13:45 +0000 (11:13 -0600)
commit4d1f9127465becf5862b77e7bfce8080256354e8
tree9f8462184b292f7d7648cedbe7aeb33fc2c43e53
parent4413f89bd36c8a7682d567e4da6ca2bd850cae29
Get rid of cur and pending pointers in struct sudo_event_base.  We
now pop the first event off the active queue instead of using a
foreach loop with deferred removal of the event.
Add SUDO_EVQ_INSERTED and SUDO_EVQ_TIMEOUTS flags to indicate that
the event on the event queue and timeouts queue respectively.
No longer need to compare the timeout to {0,0} or compare the
event's base pointer to NULL to determine queue membership.
common/event.c
common/event_poll.c
common/event_select.c
include/sudo_event.h