From: lionel Date: Mon, 25 Jan 2016 14:33:33 +0000 (+0100) Subject: Patch : thread is now dying with its parent X-Git-Url: http://gitweb.enneade.fdn.org/?a=commitdiff_plain;p=horusd.git Patch : thread is now dying with its parent --- diff --git a/horusd.py b/horusd.py index 8f794bd..dbaaec4 100755 --- 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) + ")")