ext/pcntl asynchronous sugnal handling
| From: | Dmitry Stogov | Date: | Thu, 23 Jun 2016 12:19:39 +0000 |
| Subject: | ext/pcntl asynchronous sugnal handling | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-94221@lists.php.net to get a copy of this message | ||
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 without extra ZEND_TICKs (without any run-time overhead).
https://gist.github.com/dstogov/01d1002c1785f82eaac4b937ccaf418f
Accepting this would probably need RFC.
Thanks. Dmitry.