Re: [PHP-DEV] ext/pcntl asynchronous sugnal handling

2016-06-23 Thread Michael Wallner
> On 23 06 2016, at 14:28, Nikita Popov wrote: > > On Thu, Jun 23, 2016 at 2:19 PM, Dmitry Stogov wrote: > >> >> The simple patch uses the recently added into Zend Engine ability and >> allows asynchronous signal handling without extra ZEND_TICKs (without any >> run-time overhead). >> >> >>

Re: [PHP-DEV] ext/pcntl asynchronous sugnal handling

2016-06-23 Thread Nikita Popov
On Thu, Jun 23, 2016 at 2:19 PM, Dmitry Stogov wrote: > Hi, > > > Currently OS signals may be handled through ext/pcntl: > > - synchronously, calling pcntl_signal_dispatch() manually > > - asynchronously, if PHP scripts compiled with declare(ticks=N); > > > The simple patch uses the recently adde

[PHP-DEV] ext/pcntl asynchronous sugnal handling

2016-06-23 Thread Dmitry Stogov
Hi, Currently OS signals may be handled through ext/pcntl: - synchronously, calling pcntl_signal_dispatch() manually - asynchronously, if PHP scripts compiled with declare(ticks=N); The simple patch uses the recently added into Zend Engine ability and allows asynchronous signal handling with