Commit 35600b8b authored by Łukasz Nowak's avatar Łukasz Nowak

- print only once information that process had started


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6fdd45c
...@@ -30,8 +30,8 @@ def execute_with_signal_translation(args): ...@@ -30,8 +30,8 @@ def execute_with_signal_translation(args):
child = subprocess.Popen(args, close_fds=True, preexec_fn=os.setsid) child = subprocess.Popen(args, close_fds=True, preexec_fn=os.setsid)
child_pg = child.pid child_pg = child.pid
try: try:
print 'Process %r started' % args
while True: while True:
print 'Running'
time.sleep(10) time.sleep(10)
finally: finally:
os.killpg(child_pg, signal.SIGHUP) os.killpg(child_pg, signal.SIGHUP)
......
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