mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-15 18:50:29 +08:00
changed processes names
This commit is contained in:
parent
57cb22d7d2
commit
08eeb3c19f
@ -274,7 +274,7 @@ class Server: # pylint: disable=too-many-instance-attributes
|
|||||||
|
|
||||||
self.__hid.start()
|
self.__hid.start()
|
||||||
|
|
||||||
setproctitle.setproctitle("[main] " + setproctitle.getproctitle())
|
setproctitle.setproctitle(f"kvmd/main: {setproctitle.getproctitle()}")
|
||||||
|
|
||||||
self.__heartbeat = heartbeat
|
self.__heartbeat = heartbeat
|
||||||
self.__sync_chunk_size = sync_chunk_size
|
self.__sync_chunk_size = sync_chunk_size
|
||||||
|
|||||||
@ -70,7 +70,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan
|
|||||||
|
|
||||||
logger.info("Started HID-%s pid=%d", self.__name, os.getpid())
|
logger.info("Started HID-%s pid=%d", self.__name, os.getpid())
|
||||||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
setproctitle.setproctitle(f"[hid-{self.__name}] {setproctitle.getproctitle()}")
|
setproctitle.setproctitle(f"kvmd/hid-{self.__name}: {setproctitle.getproctitle()}")
|
||||||
|
|
||||||
while not self.__stop_event.is_set():
|
while not self.__stop_event.is_set():
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -302,7 +302,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
|
|||||||
|
|
||||||
logger.info("Started HID pid=%d", os.getpid())
|
logger.info("Started HID pid=%d", os.getpid())
|
||||||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
setproctitle.setproctitle("[hid] " + setproctitle.getproctitle())
|
setproctitle.setproctitle(f"kvmd/hid: {setproctitle.getproctitle()}")
|
||||||
|
|
||||||
while not self.__stop_event.is_set():
|
while not self.__stop_event.is_set():
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user