automatically releasing at end of
script
ANYONE CAN HELP WITH THIS PLEASE???
--
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
ANYONE CAN HELP WITH THIS PLEASE???
--
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]
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 ther
> The PHP manual says it will release any acquired semaphores if they are
> not released before the end of the script processing, but this is NOT
> happening as it should. Any reasons why? Is this a known bug? Has anyone
> else experienced this?
Show us source code.
Check at http://bugs.php.net/
4 matches
Mail list logo