Commit af0b49e7 authored by Ralf's avatar Ralf
Browse files

daemonize all the threads

parent 19e2a285
......@@ -71,7 +71,7 @@ def fire_and_forget(f):
f()
except Exception:
logger.critical("fire_and_forget: Got exception out of callback:\n%s" % traceback.format_exc())
t = threading.Thread(target=_fire_and_forget)
t = threading.Thread(target=_fire_and_forget, daemon=True)
t.start()
# run a command asynchronously and log the return value if not 0
......@@ -134,7 +134,7 @@ class ThreadRepeater():
self._f = f
self._stop = False
self._sleep_time = sleep_time
self._t = threading.Thread(target=self._thread_func)
self._t = threading.Thread(target=self._thread_func, daemon=True)
self._t.start()
def _thread_func(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment