This actually looks like an execnet issue, or maybe I'm not quite understanding 
how this should work. 

If I run the following code, I get a bunch of stuff left over. Aside from the 
ssh and shell instances, the main problem appears to be the python exec 
instance on the remote machine (in this example 'localhost'). If this process 
is killed, everything else seems to sort itself out.

Calling the exit() method of the gateway doesn't seem to help. Nor does calling 
the close() method on the channel instance.

=======================================
cmd = """
while True:
        pass
"""

import py
g=py.execnet.SshGateway("localhost")
c=g.remote_exec(cmd)
=======================================

Simon
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to