UPD: I get a bit different error when run your example
bin/cluster -w 2 -p cluster-pid examples/cluster/simple-http-server.php
then after
kill -10 $(cat cluster-pid)
I receive in cluster command terminal
User defined signal 1
It works only if I run one worker
bin/cluster -w 1 -p cluster-pid examples/cluster/simple-http-server.php
then restart works as expected.
Again the problem reproducible with UvDriver, with StreamSelectDriver restart works with any number of workers.
UPD2: Different error caused by usage of ThreadContext (in original error ProcessContext was used)
Hello,
Can you give me any insight how to debug cluster restart problem when using event loop UvDriver? Here is what I get after restart signal
This doesn't happen with StreamSelectDriver
UPD: I get a bit different error when run your example
bin/cluster -w 2 -p cluster-pid examples/cluster/simple-http-server.php
then afterkill -10 $(cat cluster-pid)
I receive in cluster command terminalUser defined signal 1
It works only if I run one worker
bin/cluster -w 1 -p cluster-pid examples/cluster/simple-http-server.php
then restart works as expected.Again the problem reproducible with UvDriver, with StreamSelectDriver restart works with any number of workers.
UPD2: Different error caused by usage of ThreadContext (in original error ProcessContext was used)
Thank you, Sergey Boyko