The following code fails after the first call:

if(!($lock_id = sem_get(2501)) || !sem_acquire($lock_id))
  die('failed to get semaphore')
..do something, error triggers "exit;"..
sem_release($lock_id)

But having sem_release right after acquire makes everything work ok. I
use FreeBSD and see there was some report of a similar problem at
bugs.php.net, but there is no solution, patch, work arounds, etc posted.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to