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

Diff of /ircd-hybrid/trunk/src/s_bsd_epoll.c

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

revision 6541 by michael, Mon May 4 11:56:42 2015 UTC revision 6542 by michael, Wed Sep 16 11:01:51 2015 UTC
# Line 134  comm_select(void) Line 134  comm_select(void)
134    
135    if (num < 0)    if (num < 0)
136    {    {
137  #ifdef HAVE_USLEEP      const struct timespec req = { .tv_sec = 0, .tv_nsec = 50000000 };
138      usleep(50000);  /* avoid 99% CPU in comm_select */      nanosleep(&req, NULL);  /* Avoid 99% CPU in comm_select */
 #endif  
139      return;      return;
140    }    }
141    

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

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