Red Hat Bugzilla – Bug 246677
svc_run.c: 100% cpu usage
Last modified: 2007-11-30 17:12:09 EST
Description of problem:
Calling svc_run appears to eat up 100% of the cpu after 30 seconds of
runtime; this is because the "struct timeval timeout" only sets its value
outside of the execution loop, despite that select() returns the structure
with undefined value.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Call svc_run() and wait.
100% CPU after 30 seconds.
No spike in CPU usage.
Created attachment 158474 [details]
Patch to fix 100% cpu
libtirpc-0.1.7-7.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.