Re: Signal handling cleanup proposal

From: Date: Fri, 08 Jul 2005 00:21:28 +0000
Subject: Re: Signal handling cleanup proposal
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17180@lists.php.net to get a copy of this message
Andi Gutmans wrote: > I'd like to take a step back and try and understand better in which > cases we are failing. Although I know we added critical section code in > the hash, I think it's effectiveness is questionable, because I believe > there are many places today where we might have critical sections > besides the hash which we aren't protecting. > (And I agree with you that protecting them with real system calls sucks). > Can you describe what problems you are encountering? Well, my main one is in my own extension where I was relying on HANDLE_BLOCK_INTERRUPTIONS and it surprised me that this was a null macro under Apache2. There are a number of sections in the engine using that macro as well. If they aren't needed, we should remove them, but if they are needed, surely they are also needed under Apache2 or other sapis so it would be good to have a sapi-independent mechanism for deferring signals. The Apache2 flakyness I have seen has been weird dangling stuff on shutdown that I always just ignored. -Rasmus

« previous php.internals (#17180) next »