diff options
author | Devaev Maxim <[email protected]> | 2020-12-02 15:35:11 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-02 15:35:11 +0300 |
commit | 7debaa677663fa22d00df1decd932f53b97786e9 (patch) | |
tree | caf3123cc90167699852080e4c3d82d599dc13b4 /kvmd/plugins/ugpio | |
parent | 5bc868662a7ef2b8959a04e6678c512797ebd7be (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/ugpio')
-rw-r--r-- | kvmd/plugins/ugpio/ezcoo.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kvmd/plugins/ugpio/ezcoo.py b/kvmd/plugins/ugpio/ezcoo.py index 5c6c0e8e..f5b0bbd6 100644 --- a/kvmd/plugins/ugpio/ezcoo.py +++ b/kvmd/plugins/ugpio/ezcoo.py @@ -20,7 +20,6 @@ # ========================================================================== # -import os import re import multiprocessing import errno @@ -130,12 +129,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute ) def __serial_worker(self) -> None: - logger = get_logger(0) - - logger.info("Started %s pid=%d", self, os.getpid()) - os.setpgrp() - aioproc.rename_process(f"gpio-ezcoo-{self._instance_name}") - + logger = aioproc.settle(str(self), f"gpio-ezcoo-{self._instance_name}") while not self.__stop_event.is_set(): try: with self.__get_serial() as tty: |