Parent Directory
|
Revision Log
|
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 |
|
svnadmin@ircd-hybrid.org | ViewVC Help |
Powered by ViewVC 1.1.28 |