Bugzilla – Bug 196
minor tcpconn.py fixes
Last modified: 2008-08-09 23:28:46
You need to log in before you can comment on or make changes to this bug.
fd_poll.poll() sometimes fail with: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap self.run() File "/usr/lib64/ganglia/python_modules/tcpconn.py", line 252, in run poll_events = fd_poll.poll() error: (4, 'Interrupted system call') which stops the module from working until a gmond restart.
Created an attachment (id=149) [details] patch against trunk Since readlines() is blocking there is no point to use poll (especially without a timeout). I also added a check to run time.sleep(_refresh_rate) only if we aren't shutting down. It speeds up gmond -m at least.
can you also reproduce this bug in trunk without your patch? what is triggering the "Interrupted system call" from poll()? which version of python (2.5.?) and architecture (x86_64?)
Committed revision 1621 for trunk
Committed revision 1645 for 3.1