From 92f04c677aed7006cea24e58176004ba0a7154cd Mon Sep 17 00:00:00 2001 From: lookshe Date: Sat, 20 Sep 2014 19:53:12 +0200 Subject: 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 --- rasp_starup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3