aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-06-23 22:16:48 +0200
committercedricbonhomme <devnull@localhost>2011-06-23 22:16:48 +0200
commit51b3819182e9be84b127db3760f812ac18a755fb (patch)
tree7a64133f39763bf41646b67e68fa137d0bcb0224
parentAdded control file to start/stop pyAggr3g470r. (diff)
downloadnewspipe-51b3819182e9be84b127db3760f812ac18a755fb.tar.gz
newspipe-51b3819182e9be84b127db3760f812ac18a755fb.tar.bz2
newspipe-51b3819182e9be84b127db3760f812ac18a755fb.zip
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.
-rwxr-xr-xpyAggr3g470r4
1 files 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()
bgstack15