aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2014-09-20 19:53:12 +0200
committerlookshe <github@lookshe.org>2014-09-20 19:53:12 +0200
commit92f04c677aed7006cea24e58176004ba0a7154cd (patch)
tree00d7f7c34fb0dc3ae3d3bb00f635c1436e418e3f
parente361b512261140c1d462816e6f1977b8a2922fbe (diff)
Update rasp_starup.py
Popen.kill only kills the direct childs and not all Popen.terminate send SIGTERM, so the process will kill all childs correctly
-rw-r--r--rasp_starup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rasp_starup.py b/rasp_starup.py
index 1ba0b0a..37856b9 100644
--- a/rasp_starup.py
+++ b/rasp_starup.py
@@ -24,7 +24,7 @@ def playerThreadFunc():
# kill if running
if process != 0:
if process.poll() == None:
- process.kill()
+ process.terminate()
time.sleep(1)
# turn on led
GPIO.output(led_pin, True)