Closed hitsmaxft closed 10 years ago
I think you should check if (!function_exists('pcntl_sigtimedwait')) { Inside of "protected function sigtimedwait". Or rename this method to something like "sigtimedwaitFallback". Does it make sense?
And thank you for your patience and very valuable contribution :+1:
The unexpected shutdown of master thread was caused by missing function on Mac OS. Related error infomation was suppress by "@", which took me lots of time in debugging : (
The previous solution in the project does not work on my laptop. signal-triggered function calls on protected method were outside the instance scope. so I move the code into an protected method in \PHPDaemon\Thread\Generic.