Re: [PHP] semaphores are broken

2011-05-08 Thread Rasmus Lerdorf
On Fri, May 6, 2011 at 12:57 PM, Jeremy Greene jer...@zeevee.com wrote: Then I find out that sem_acquire() actually returns **OK** when the underlying semop call gets an EINTR!!! Holy cow. How can a php system call loose an error?! That's just crazy. Generally you don't care about an EINTR

RE: [PHP] semaphores are broken

2011-05-08 Thread Jeremy Greene
much code in an interrupt handler -- I have always thought that has issues too. Jeremy -Original Message- From: Rasmus Lerdorf [mailto:ras...@lerdorf.com] Sent: Sunday, May 08, 2011 11:38 AM To: Jeremy Greene Cc: php-general@lists.php.net Subject: Re: [PHP] semaphores are broken On Fri, May

[PHP] semaphores are broken

2011-05-06 Thread Jeremy Greene
Ok, I tried to use semaphores between php and C++. Where the php script was the client and the C++ app was a server. Client only acquired sems, server only released. This cannot be done with php semaphores. Got around the first two problems: 1) Php semaphore is actually 3 sysV sems.