thiell/test — Issue #34: Unhandled broken pipe
Author: thiell
Created: 2012-03-03 16:28:45+00:00
State: closed
Labels: Lib/Worker

Fix the following issue:

{{{
[root@fortoy0 ~]# clush -w fortoy[33-34] 'dmesg; sleep 5; dmesg' | less
Unhandled exception in thread started by
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/ClusterShell/Task.py", line 176, in _start_thread
self._engine.run(self.timeout)
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Engine.py", line 634, in run
self.runloop(timeout)
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Poll.py", line 175, in runloop
client._handle_read()
File "/usr/lib/python2.4/site-packages/ClusterShell/Worker/Ssh.py", line 174, in _handle_read
self.worker._on_node_msgline(self.key, msg)
File "/usr/lib/python2.4/site-packages/ClusterShell/Worker/Worker.py", line 145, in _on_node_msgline
self._invoke("ev_read")
File "/usr/lib/python2.4/site-packages/ClusterShell/Worker/Worker.py", line 93, in _invoke
self.eh._invoke(ev_type, self)
File "/usr/lib/python2.4/site-packages/ClusterShell/Event.py", line 51, in _invoke
ev_handler(source)
File "/usr/bin/clush", line 101, in ev_read
print "%s: %s" % (ns, buf)
IOError: [Errno 32] Broken pipe
}}}