Commit 3db30547 authored by Julien Muchembled's avatar Julien Muchembled

tests: log started & killed processes

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2741 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8270d116
...@@ -168,9 +168,12 @@ class NEOProcess(object): ...@@ -168,9 +168,12 @@ class NEOProcess(object):
sys.exit() sys.exit()
except: except:
raise ChildException(*sys.exc_info()) raise ChildException(*sys.exc_info())
neo.lib.logging.info('pid %u: %s %s',
self.pid, command, ' '.join(map(repr, args)))
def kill(self, sig=signal.SIGTERM): def kill(self, sig=signal.SIGTERM):
if self.pid: if self.pid:
neo.lib.logging.info('kill pid %u', self.pid)
try: try:
pdb.kill(self.pid, sig) pdb.kill(self.pid, sig)
except OSError: except OSError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment