]> gitweb.maison.local Git - horusd.git/commitdiff
Patch : thread is now dying with its parent master
authorlionel <lionel@stargate.enneade.fdn.org>
Mon, 25 Jan 2016 14:33:33 +0000 (15:33 +0100)
committerlionel <lionel@stargate.enneade.fdn.org>
Mon, 25 Jan 2016 14:33:33 +0000 (15:33 +0100)
horusd.py

index 8f794bd6da9a10798749c251c6049b5dc51a649d..dbaaec46bbd6255cebf22591947b5f5eed183faa 100755 (executable)
--- a/horusd.py
+++ b/horusd.py
@@ -114,6 +114,7 @@ class App():
       Launching the heartbeat function
       '''
       p = Process(target=heartbeat, args=(2,))
+      p.daemon = True
       p.start()
       heartbeat_pid = p.pid
       logger.info("heartbeat loop launched (pid " + str(heartbeat_pid) + ")")