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