Skip to content

修复 Docker 环境中 monitor 进程无法正确 reload 的问题。#438

Closed
kylin987 wants to merge 1 commit into
walkor:masterfrom
kylin987:master
Closed

修复 Docker 环境中 monitor 进程无法正确 reload 的问题。#438
kylin987 wants to merge 1 commit into
walkor:masterfrom
kylin987:master

Conversation

@kylin987

Copy link
Copy Markdown

docker环境下,主进程的pid一般也会等于1,目前判断条件>1,会导致docker环境,导致 posix_kill() 被跳过。
解决方案:通过读取 webman.pid 文件中的主进程 PID 进行 reload,避免误杀 init 进程的同时兼容 Docker 等容器环境。

@walkor walkor closed this in 507cece May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant