Commit 77322483 authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 575888db
...@@ -34,7 +34,7 @@ function callback($instance,$channelName,$message){ ...@@ -34,7 +34,7 @@ function callback($instance,$channelName,$message){
if (Signal::get() == SIGHUP) { if (Signal::get() == SIGHUP) {
$instance->unsubscribe(array($channelName)); $instance->unsubscribe(array($channelName));
$instance->close(); $instance->close();
Signal::reset(); // Signal::reset();
} }
} }
......
...@@ -39,6 +39,13 @@ class Test extends Logger ...@@ -39,6 +39,13 @@ class Test extends Logger
{ {
require APPLICATION_PATH . '/scripts/crontab/push/runRedisBase.php'; require APPLICATION_PATH . '/scripts/crontab/push/runRedisBase.php';
pcntl_signal_dispatch();
printf(".123");
sleep(1);
if (Signal::get() == SIGHUP) {
Signal::reset();
// break;
}
// while (true) { // while (true) {
// pcntl_signal_dispatch(); // pcntl_signal_dispatch();
// printf(".123"); // printf(".123");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment