diff --git a/daemons/lvmdbusd/background.py b/daemons/lvmdbusd/background.py index 90e8b6881..3b77a7cc6 100644 --- a/daemons/lvmdbusd/background.py +++ b/daemons/lvmdbusd/background.py @@ -158,5 +158,6 @@ def _run_cmd(req): def cmd_runner(request): - t = threading.Thread(target=_run_cmd, args=(request,)) + t = threading.Thread(target=_run_cmd, args=(request,), + name="cmd_runner %s" % str(request.method)) t.start() diff --git a/daemons/lvmdbusd/fetch.py b/daemons/lvmdbusd/fetch.py index c053685a1..69a4aae04 100644 --- a/daemons/lvmdbusd/fetch.py +++ b/daemons/lvmdbusd/fetch.py @@ -152,7 +152,8 @@ class StateUpdate(object): load(refresh=False, emit_signal=False, need_main_thread=False) self.thread = threading.Thread(target=StateUpdate.update_thread, - args=(self,)) + args=(self,), + name="StateUpdate.update_thread") def load(self, refresh=True, emit_signal=True, cache_refresh=True, log=True, need_main_thread=True): diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py index ff9768374..dc31b6f0d 100644 --- a/daemons/lvmdbusd/main.py +++ b/daemons/lvmdbusd/main.py @@ -138,7 +138,8 @@ def main(): # Using a thread to process requests, we cannot hang the dbus library # thread that is handling the dbus interface - thread_list.append(threading.Thread(target=process_request)) + thread_list.append(threading.Thread(target=process_request, + name='process_request')) # Have a single thread handling updating lvm and the dbus model so we # don't have multiple threads doing this as the same time