/[svn]/ircd-hybrid/src/s_bsd_kqueue.c
ViewVC logotype

Diff of /ircd-hybrid/src/s_bsd_kqueue.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

ircd-hybrid/src/s_bsd_kqueue.c revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC ircd-hybrid-7.2/src/s_bsd_kqueue.c revision 842 by adx, Fri Feb 9 21:27:48 2007 UTC
# Line 20  Line 20 
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
21   *  USA   *  USA
22   *   *
23   *  $Id: s_bsd_kqueue.c,v 1.45 2005/09/29 06:35:41 metalrock Exp $   *  $Id$
24   */   */
25    
26  #include "stdinc.h"  #include "stdinc.h"
# Line 82  kq_update_events(int fd, int filter, int Line 82  kq_update_events(int fd, int filter, int
82    
83    EV_SET(kep, (uintptr_t) fd, (short) filter, what, 0, 0, NULL);    EV_SET(kep, (uintptr_t) fd, (short) filter, what, 0, 0, NULL);
84    
85    if (kqoff == KE_LENGTH)    if (++kqoff == KE_LENGTH)
86    {    {
87      kevent(kqfd.fd, kq_fdlist, kqoff, NULL, 0, &zero_timespec);      kevent(kqfd.fd, kq_fdlist, kqoff, NULL, 0, &zero_timespec);
88      kqoff = 0;      kqoff = 0;
89    }    }
   else  
     kqoff++;  
90  }  }
91    
92  /*  /*

Legend:
Removed from v.30  
changed lines
  Added in v.842

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28