From 422702fa8d472e51d034a223822467e194ec52d2 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Mon, 30 Sep 2019 21:52:29 +0900 Subject: [PATCH] daemonize threads --- nohang/nohang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nohang/nohang b/nohang/nohang index ade8ef0..3f7e511 100755 --- a/nohang/nohang +++ b/nohang/nohang @@ -45,7 +45,7 @@ def start_thread(func, *a, **k): """ run function in a new thread """ - th = threading.Thread(target=func, args=a, kwargs=k) + th = threading.Thread(target=func, args=a, kwargs=k, daemon=True) th_name = th.getName() if debug_threading: