Re: [RFC] Zend Signal Handling
| From: | Pierre Joye | Date: | Thu, 24 Jul 2008 07:26:40 +0000 |
| Subject: | Re: [RFC] Zend Signal Handling | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39255@lists.php.net to get a copy of this message | ||
On Wed, Jul 23, 2008 at 7:54 PM, Stanislav Malyshev <stas@zend.com> wrote:
> Hi!
>
>> Do we really need this option?
>> Is someone going to disable it and why?
>
> I see only reason to disable it if one has some weird system where sigaction
> is either absent or doesn't work as it should. Not that I know of any, but
> Unix variants are full of surprises.
> I'd keep it enabled by default, unless we are on OS that doesn't have
> sigaction (e.g. Windows or some extremely weird Unix) or in ZTS, of course.
Windows has signal (and SigAction) support. Obviously (sigh) not using
the same API but it is possible to achieve the same behaviors using
the windows API. For example, there is already exception for special
cases like SIGALRM, windows API also uses a timer (CreateWaitableTimer
& co). Once the code is in cvs, I can give it a try to port
zend_signal to windows (not before alpha1 but before alpha2 :)
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org