forked from bot/app
🐛 Linux下创建子进程出错的问题 fork -> spawn
This commit is contained in:
commit
b05bbf2f19
@ -1,11 +1,11 @@
|
||||
[
|
||||
{
|
||||
"module_name": "liteyuki-plugin-nonebot",
|
||||
"project_link": "liteyuki-plugin-nonebot",
|
||||
"module_name": "liteyukibot-plugin-nonebot",
|
||||
"project_link": "liteyukibot-plugin-nonebot",
|
||||
"name": "NoneBot插件",
|
||||
"desc": "在轻雪中使用NoneBot,支持NoneBot2,为NoneBot开发者提供了更多便捷功能(已内置)",
|
||||
"desc": "在轻雪中使用NoneBot,为NoneBot开发者提供了更多便捷功能(已内置)",
|
||||
"author": "snowykami",
|
||||
"homepage": "https://github.com/LiteyukiStudio/LiteyukiBot",
|
||||
"homepage": "https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot",
|
||||
"tags": [
|
||||
{
|
||||
"label": "server",
|
||||
@ -17,4 +17,4 @@
|
||||
"valid": true,
|
||||
"version": "rolling"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
@ -8,7 +8,7 @@ Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
@File : manager.py
|
||||
@Software: PyCharm
|
||||
"""
|
||||
|
||||
import multiprocessing
|
||||
import threading
|
||||
from multiprocessing import Process
|
||||
from typing import Any, Callable, TYPE_CHECKING, TypeAlias
|
||||
@ -33,6 +33,7 @@ TIMEOUT = 10
|
||||
__all__ = [
|
||||
"ProcessManager"
|
||||
]
|
||||
multiprocessing.set_start_method("spawn", force=True)
|
||||
|
||||
|
||||
class ChannelDeliver:
|
||||
|
Loading…
Reference in New Issue
Block a user