Hyperf 命令中捕获信号 #5067
huangdijia
started this conversation in
Ideas
Hyperf 命令中捕获信号
#5067
Replies: 1 comment
-
封装成扩展包( https://github.com/friendsofhyperf/command-signals ),欢迎 star |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
近日看到 Laravel 有一个关于命令中处理信号人 PR([9.x] Introducing Signal Traps),思考了一下,确实也有这样的需求,就想了一下 Hyperf 的实现思路。
用法:
执行效果:
Ctrl + C
killall php
Beta Was this translation helpful? Give feedback.
All reactions