Re: [RFC] Zend Signal Handling
| From: | Stanislav Malyshev | Date: | Wed, 30 Jul 2008 18:54:25 +0000 |
| Subject: | Re: [RFC] Zend Signal Handling | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39479@lists.php.net to get a copy of this message | ||
Hi!
I have a couple of questions about the patch:
1. Why allocate fixed-size buffer via individual malloc's on each activate and free it on each deactivate? Won't it be better to just allocate it once and use it?
2. Why define own SIG_UNEXPECTED - we already have UNEXPECTED macro in the engine?
3. I understand that ZEND_SIGNALS is disabled whenever ZTS is on. However, in the code I see parts where under ifdef ZEND_SIGNALS there's still checks for ifdef ZTS. Why is that? Is it planned to be implemented on some stage?
4. Why we try to handle SIGTERM and SIGQUIT - aren't those supposed to kill the process anyway?
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com