Failed kill daemon
I think this class needs more work. I just can't kill the process once started. The only choice was run kill -9.
Are you sure the signal handler works correctly? Is this line executed? https://github.com/infusion/PHP-Daemon/blob/master/lib/main.php#L85
I think is not executed. Instead, I got this on error log:
Warning: Invalid callback self::_handleSignal, cannot access self:: when no class scope is active on line 35(/home/devel/PHPCli/Daemon/PHP-Daemon-master/daemon) -> array ( '_GET' => array ( ),
and line 35 in daemon is
Main::registerEnv();
Cordialmente
Carlos Gabriel Arce CruzSoftware Solutions Deployer
@apolinux Skype: carlos.gabriel.arce
El mar., 18 de sep. de 2018 a la(s) 14:04, Robert Eisele ( [email protected]) escribió:
Are you sure the signal handler works correctly? Is this line executed? https://github.com/infusion/PHP-Daemon/blob/master/lib/main.php#L85
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/infusion/PHP-Daemon/issues/3#issuecomment-422510589, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1hgryG1FW7XzhKe2ItBdNCXTPosmiJks5ucUPNgaJpZM4Wui6e .
Okay that was tough. Class method visibility was changed, so that _handleSignal was not visible within the class for the signal handler anymore. Could you please check again?