diff options
author | Devaev Maxim <[email protected]> | 2020-06-04 06:27:52 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-04 06:27:52 +0300 |
commit | 9cee98310deb851c4a5c36b1e593f032f8234c32 (patch) | |
tree | 907d908432c5ce43c729866d67a323daf35aa25e /kvmd/apps | |
parent | be9ce4e4ffa418ba64612efdabee116dd59a6f5d (diff) |
refactoring
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py index 423e77dc..aa4cd83b 100644 --- a/kvmd/apps/kvmd/server.py +++ b/kvmd/apps/kvmd/server.py @@ -37,7 +37,6 @@ from typing import Any import aiohttp import aiohttp.web -import setproctitle from ...logging import get_logger @@ -56,6 +55,7 @@ from ...validators.kvm import valid_stream_quality from ...validators.kvm import valid_stream_fps from ... import aiotools +from ... import aioproc from .auth import AuthManager from .info import InfoManager @@ -215,7 +215,7 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins def run(self, **kwargs: Any) -> None: # type: ignore # pylint: disable=arguments-differ self.__hid.start() - setproctitle.setproctitle(f"kvmd/main: {setproctitle.getproctitle()}") + aioproc.rename_process("main") super().run(**kwargs) async def _make_app(self) -> aiohttp.web.Application: |