summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/device.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-02 15:35:11 +0300
committerDevaev Maxim <[email protected]>2020-12-02 15:35:11 +0300
commit7debaa677663fa22d00df1decd932f53b97786e9 (patch)
treecaf3123cc90167699852080e4c3d82d599dc13b4 /kvmd/plugins/hid/otg/device.py
parent5bc868662a7ef2b8959a04e6678c512797ebd7be (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/hid/otg/device.py')
-rw-r--r--kvmd/plugins/hid/otg/device.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py
index 8845d9e1..73526bcf 100644
--- a/kvmd/plugins/hid/otg/device.py
+++ b/kvmd/plugins/hid/otg/device.py
@@ -78,12 +78,7 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
self.__stop_event = multiprocessing.Event()
def run(self) -> None:
- logger = get_logger(0)
-
- logger.info("Started HID-%s pid=%d", self.__name, os.getpid())
- os.setpgrp()
- aioproc.rename_process(f"hid-{self.__name}")
-
+ logger = aioproc.settle(f"HID-{self.__name}", f"hid-{self.__name}")
while not self.__stop_event.is_set():
try:
while not self.__stop_event.is_set():