Commit 4d714bfa authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent de69364f
...@@ -28,6 +28,11 @@ function callback($instance,$channelName,$message){ ...@@ -28,6 +28,11 @@ function callback($instance,$channelName,$message){
}catch(Exception $ex){ }catch(Exception $ex){
echo $ex->getMessage(); echo $ex->getMessage();
} }
pcntl_signal_dispatch();
if (Signal::get() == SIGHUP) {
Signal::reset();
exit;
}
} }
$conf = \Yaf\Registry::get('config')->get('redis.database.params'); $conf = \Yaf\Registry::get('config')->get('redis.database.params');
$redisPublishName=\Yaf\Registry::get('config')->get('redis.redisPublishName'); $redisPublishName=\Yaf\Registry::get('config')->get('redis.redisPublishName');
......
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