PHP-Daemon icon indicating copy to clipboard operation
PHP-Daemon copied to clipboard

Failed kill daemon

Open apolinux opened this issue 7 years ago • 3 comments

I think this class needs more work. I just can't kill the process once started. The only choice was run kill -9.

apolinux avatar Sep 18 '18 19:09 apolinux

Are you sure the signal handler works correctly? Is this line executed? https://github.com/infusion/PHP-Daemon/blob/master/lib/main.php#L85

infusion avatar Sep 18 '18 19:09 infusion

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 .

apolinux avatar Sep 18 '18 19:09 apolinux

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?

infusion avatar Sep 18 '18 20:09 infusion