mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
stop signals propagation in 3.9
This commit is contained in:
@@ -273,7 +273,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
|
||||
logger = get_logger(0)
|
||||
|
||||
logger.info("Started HID pid=%d", os.getpid())
|
||||
aioproc.ignore_sigint()
|
||||
os.setpgrp()
|
||||
aioproc.rename_process("hid")
|
||||
|
||||
while not self.__stop_event.is_set():
|
||||
|
||||
@@ -197,7 +197,7 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes
|
||||
logger = get_logger(0)
|
||||
|
||||
logger.info("Started HID pid=%d", os.getpid())
|
||||
aioproc.ignore_sigint()
|
||||
os.setpgrp()
|
||||
aioproc.rename_process("hid")
|
||||
|
||||
while not self.__stop_event.is_set():
|
||||
|
||||
@@ -81,7 +81,7 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
|
||||
logger = get_logger(0)
|
||||
|
||||
logger.info("Started HID-%s pid=%d", self.__name, os.getpid())
|
||||
aioproc.ignore_sigint()
|
||||
os.setpgrp()
|
||||
aioproc.rename_process(f"hid-{self.__name}")
|
||||
|
||||
while not self.__stop_event.is_set():
|
||||
|
||||
Reference in New Issue
Block a user