bitkeeper revision 1.1440 (428a703fGt3asjVc5fTAW72ClnFOog)

Many files:
  g/c _readline{,s} and use regular readline{,s} functions -- the special
  _readline{,s} functions were only needed because of Twisted.
ip.py:
  Also use readlines() instead of xreadlines().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-05-17 22:29:19 +00:00
1 parent 899c0f0840
commit 627aaffcb5
8 files changed
+9 -51

No files matched your search

+1 -3
View File
@@ -15,8 +15,6 @@ from xen.sv.params import *
from twisted.internet import reactor
from twisted.web import static, server, script
from xen.util.ip import _readline, _readlines
class Daemon:
"""The xend daemon.
"""
@@ -59,7 +57,7 @@ class Daemon:
return 0
# Read the pid of the previous invocation and search active process list.
pid = open(PID_FILE, 'r').read()
lines = _readlines(os.popen('ps ' + pid + ' 2>/dev/null'))
lines = os.popen('ps ' + pid + ' 2>/dev/null').readlines()
for line in lines:
if re.search('^ *' + pid + '.+xensv', line):
if not kill:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.