[PHP] Re: semaphores not automatically releasing at end of script

2001-12-07 Thread Thomas

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]




RE: [PHP] Re: semaphores not automatically releasing at end of script

2001-12-07 Thread Jon Haworth

You probably have a better chance if you include

(a) some code
(b) an error message
(c) a description of your environment


Cheers
Jon


-Original Message-
From: Thomas [mailto:[EMAIL PROTECTED]]
Sent: 07 December 2001 11:01
To: [EMAIL PROTECTED]
Subject: [PHP] Re: semaphores not 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]


_
This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/

-- 
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]




[PHP] Re: semaphores not automatically releasing at end of script

2001-12-05 Thread Thomas

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]




[PHP] Re: semaphores not automatically releasing at end of script

2001-12-04 Thread Richard Lynch

 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/

-- 
Like music?  http://l-i-e.com/artists.htm


-- 
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]