mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-10 15:56:03 +00:00
feat: kill runtime process when exit in stdio mode
This commit is contained in:
@@ -52,7 +52,7 @@ async def main(loop: asyncio.AbstractEventLoop):
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
print('[Signal] 程序退出.')
|
||||
# ap.shutdown()
|
||||
app_inst.dispose()
|
||||
os._exit(0)
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
|
||||
Reference in New Issue
Block a user