[pycopia] r740 committed - Fix a couple of bugs.

4 views
Skip to first unread message

pyc...@googlecode.com

unread,
Nov 22, 2013, 2:25:24 PM11/22/13
to pyc...@googlegroups.com
Revision: 740
Author: keith.dart
Date: Fri Nov 22 19:25:16 2013 UTC
Log: Fix a couple of bugs.

http://code.google.com/p/pycopia/source/detail?r=740

Modified:
/trunk/QA/pycopia/remote/PosixServer.py
/trunk/QA/pycopia/remote/pyro.py
/trunk/setup.py

=======================================
--- /trunk/QA/pycopia/remote/PosixServer.py Thu Apr 11 19:03:13 2013 UTC
+++ /trunk/QA/pycopia/remote/PosixServer.py Fri Nov 22 19:25:16 2013 UTC
@@ -296,6 +296,7 @@
proc = pm.spawnpty(cmd, pwent=user)
text = proc.read()
sts = proc.wait()
+ proc.close()
return sts, text

def pipe(self, cmd, user=None):
@@ -307,6 +308,7 @@
proc = pm.spawnpipe(cmd, pwent=user, callback=self._status_cb)
text = proc.read()
sts = proc.wait()
+ proc.close()
return sts, text

def spawn(self, cmd, user=None, async=False):
=======================================
--- /trunk/QA/pycopia/remote/pyro.py Wed Feb 6 04:05:03 2013 UTC
+++ /trunk/QA/pycopia/remote/pyro.py Fri Nov 22 19:25:16 2013 UTC
@@ -116,7 +116,7 @@

def register_server(serverobject, host=None, port=0, unixsocket=None,
nathost=None, natport=None):
"""Regiseter the server with Pycopia asyncio event handler."""
- host = host or Pyro4.config.HOST or Pyro4.socketutil.getMyIpAddress()
+ host = host or Pyro4.config.HOST or
Pyro4.socketutil.getIpAddress(socket.getfqdn())
pyrodaemon = Pyro4.Daemon(host=host, port=port,
unixsocket=unixsocket, nathost=nathost, natport=natport)
uri = pyrodaemon.register(serverobject)
=======================================
--- /trunk/setup.py Wed Sep 19 04:21:45 2012 UTC
+++ /trunk/setup.py Fri Nov 22 19:25:16 2013 UTC
@@ -243,8 +243,8 @@
except IndexError:
print(DOC)
return 1
- mainrev = get_svn_revision()
- os.environ["PYCOPIA_REVISION"] = str(mainrev)
+# mainrev = get_svn_revision()
+# os.environ["PYCOPIA_REVISION"] = str(mainrev)
try:
method = globals()["do_" + cmd]
except KeyError:
Reply all
Reply to author
Forward
0 new messages