Events uv cant handle stop signall
webrobot1 opened this issue · comments
Hello again
Uv is Libuv library. it cant handle SIGQUIT what is gracefull stop - https://docs.libuv.org/en/v1.x/signal.html
And as i see it cant handle SIGINT (2) too
may be it is possible set as a constant at Worker.php which signal number master will send to child process ? At this reason i can extend Worker...but now i need rewrite all stopAll() function
workerman version 4.*
it cant handle SIGQUIT what is gracefull stop - https://docs.libuv.org/en/v1.x/signal.html
And as i see it cant handle SIGINT (2) too
Sorry, I couldn’t find the issue you mentioned in https://docs.libuv.org/en/v1.x/signal.html.
Sorry, I couldn’t find the issue you mentioned
graccefull stop signal oа workerman is SIGQUIT but it not accapted by Libuv (UV) and a lot of another signals
when worker forks events (like UV) check the signals in workerman
I think if UV cannot handle certain signals, you should make compatibility changes in Events/Uv.php
instead of modifying the Worker.php
file.
I think if UV cannot handle certain signals, you should make compatibility changes in
Events/Uv.php
instead of modifying theWorker.php
file.
it is imposible bacause worker process is running on event loop only this loop can wakeup process on signall
And if master process will sent signal what Events/Uv.php
cant handle - it cant be handle
If Events/Uv.php
cant handle some of basic signals (number before 10+-) maybe another events library cant too
If UV cannot receive signals such as SIGINT or SIQUIT, I believe this is a bug in UV, and Workerman will not be compatible with it.
ok, thank for feedback