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

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

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

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

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

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