mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
set --process-name-prefix
This commit is contained in:
@@ -62,6 +62,8 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
unix_path: str,
|
||||
timeout: float,
|
||||
|
||||
process_name_prefix: str,
|
||||
|
||||
cmd: List[str],
|
||||
) -> None:
|
||||
|
||||
@@ -86,6 +88,8 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
self.__unix_path = unix_path
|
||||
self.__timeout = timeout
|
||||
|
||||
self.__process_name_prefix = process_name_prefix
|
||||
|
||||
self.__cmd = cmd
|
||||
|
||||
self.__streamer_task: Optional[asyncio.Task] = None
|
||||
@@ -248,6 +252,7 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
host=self.__host,
|
||||
port=self.__port,
|
||||
unix=self.__unix_path,
|
||||
process_name_prefix=self.__process_name_prefix,
|
||||
**self.__params,
|
||||
)
|
||||
for part in self.__cmd
|
||||
|
||||
Reference in New Issue
Block a user