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

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

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

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

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

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