Bug #13490 Updated: Semaphores don't release automatically
| From: | lobbin@php.net | Date: | Mon, 14 Jan 2002 12:42:10 +0000 |
| Subject: | Bug #13490 Updated: Semaphores don't release automatically | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77011@lists.php.net to get a copy of this message | ||
ID: 13490
Updated by: lobbin
Old Summary: Semaphores don't release automatically
Reported By: m@savich.ru
Old Status: Feedback
Status: Closed
Bug Type: Semaphore related
Operating System: FreeBSD 4.1.1
PHP Version: 4.0.6
New Comment:
-> Closed.
Previous Comments:
------------------------------------------------------------------------
[2002-01-14 07:37:24] m@savich.ru
Checked on FreeBSD 4.4 with PHP 4.1.0 - it works!
------------------------------------------------------------------------
[2002-01-14 02:29:30] lobbin@php.net
Is this reproducable on 4.1.1?
------------------------------------------------------------------------
[2002-01-13 20:27:43] swm@php.net
My bad. Re-opened.
------------------------------------------------------------------------
[2002-01-13 14:52:51] m@savich.ru
http://www.php.net/manual/ru/function.sem-acquire.php:
"After processing a request, any semaphores acquired by the process but
not explicitly released will be released automatically and a warning
will be generated."
Therefore, it is NOT intended behaviour, because in my situation
semaphores DON'T release automatically. And any failure in php script
causes apache to hang up in few seconds, because semaphore is acquired
by dead script and all other instances can't work. This really is bug.
:-(
------------------------------------------------------------------------
[2002-01-13 08:35:48] swm@php.net
This is intended behaviour. This is how semaphores work. =)
Use sem_remove() to remove semaphores.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=13490
Edit this bug report at http://bugs.php.net/?id=13490&edit=1