Fixed issue with child process having custom handlers. When signal is called with child process PID, it cancels the sleep but handlers wont be called.
Improved default select with stream_select error check.
Simple test, commenting pcntl_async_signals will result sleep disrupted but handler wont be called.
Same is with Workerman, it waits for stream_select and when signal is called it breaks the select, but handlers wont be called.
Fixed issue with child process having custom handlers. When signal is called with child process
PID
, it cancels the sleep but handlers wont be called. Improved default select withstream_select
error check.Simple test, commenting
pcntl_async_signals
will resultsleep
disrupted but handler wont be called. Same is with Workerman, it waits for stream_select and when signal is called it breaks the select, but handlers wont be called.In CLI run command
kill -s 15 PID