[execnet-dev] closing channels and gateways
Jacob Perkins
japerk at gmail.com
Fri Nov 6 17:05:56 CET 2009
Do channels or gateways need to be explicitly closed before a script
finishes?
When I registered an atexit function to close them (calls close() on each
channel, then exit() on each gateway), I get the following:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 979, in <module>
File "<string>", line 688, in serve
File "<string>", line 717, in executetask
File "<string>", line 384, in close
File "<string>", line 641, in _send
File "<string>", line 185, in writeto
File "<string>", line 884, in save
File "<string>", line 161, in write
ValueError: I/O operation on closed file
Thanks (and huge thanks for creating execnet, it's simpler and far more
efficient for my purposes than discoproject)
Jacob
--
http://streamhacker.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/execnet-dev/attachments/20091106/bd37647d/attachment.html>
More information about the execnet-dev
mailing list