Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon 监听子进程数量问题 #5

Open
wanglelecc opened this issue Jan 30, 2020 · 1 comment
Open

Daemon 监听子进程数量问题 #5

wanglelecc opened this issue Jan 30, 2020 · 1 comment

Comments

@wanglelecc
Copy link

您好,最近也想写一个类似进程管理的东西,阅读了您的项目代码,有点小疑问,Daemon 里面有一个 check 方法来监听进程,方法里面有一个判断条件 !empty($manager->waitSignalProcessPool['signal']), 当第一次 reload 之后 waitSignalProcessPool['signal'] 变量,一直都是有值得,之后 Daemon->check 方法应该是一直处于不工作状态。是不是应该在 重启完所有子进程后(waitSignalProcessPool['pool'] 为空后),将整个 waitSignalProcessPool 变量置空呢?

@TIGERB
Copy link
Owner

TIGERB commented Jan 30, 2020

嗯 是个Bug

感谢~

欢迎PR 哈哈

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

No branches or pull requests

2 participants