hesitant to put 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 brok
On Fri, May 6, 2011 at 12:57 PM, Jeremy Greene 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 on a semop()
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.
a
3 matches
Mail list logo