Hi, I made a pcntl_signal_dispatch() function [1] to allow scripts that use signals to work without ticks.
This function just calls the pcntl's tick handler on-demand so that all signal handler functions are called if there are pending signals. It does not allow the signal handlers to be called at any time like with ticks, but allows things like this: while (do_something()) { /* main loop */ pcntl_signal_dispatch(); } or while (pcntl_signal_dispatch() && do_something()) { /* main loop */ } Can I commit this ? [1] http://arnaud.lb.s3.amazonaws.com/pcntl_signal_dispatch.patch Regards, Arnaud -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php