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

Diff of /ircd-hybrid/branches/8.2.x/src/s_bsd_kqueue.c

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

revision 6540 by michael, Tue Aug 11 17:53:32 2015 UTC revision 6541 by michael, Wed Sep 16 11:01:18 2015 UTC
# Line 157  comm_select(void) Line 157  comm_select(void)
157    
158    if (num < 0)    if (num < 0)
159    {    {
160  #ifdef HAVE_USLEEP      const struct timespec req = { .tv_sec = 0, .tv_nsec = 50000000 };
161      usleep(50000);  /* avoid 99% CPU in comm_select */      nanosleep(&req, NULL);  /* Avoid 99% CPU in comm_select */
 #endif  
162      return;      return;
163    }    }
164    

Legend:
Removed from v.6540  
changed lines
  Added in v.6541

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