From 51b3819182e9be84b127db3760f812ac18a755fb Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 23 Jun 2011 22:16:48 +0200 Subject: Minor bugfix: When using the control script the main process was attached to the console. Consequently it was not possible to close the console without closing subprocess of pyAggr3g470r. --- pyAggr3g470r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyAggr3g470r b/pyAggr3g470r index 72e00bf0..b136df24 100755 --- a/pyAggr3g470r +++ b/pyAggr3g470r @@ -40,7 +40,7 @@ SERVICE = "pyAggr3g470r" def service_start(servicename = None): if servicename is not None: service = servicename + ".py" - proc = subprocess.Popen(["python",service]) + proc = subprocess.Popen(["python",service], stderr=subprocess.STDOUT, stdout=subprocess.PIPE) time.sleep(0.15) return proc.pid return False @@ -125,4 +125,4 @@ if __name__ == "__main__": stop() start() else: - usage() \ No newline at end of file + usage() -- cgit