php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16913 sem auto release should be to be disabled!!!
Submitted: 2002-04-29 14:28 UTC Modified: 2019-04-14 04:22 UTC
Votes:31
Avg. Score:3.5 ± 0.9
Reproduced:6 of 7 (85.7%)
Same Version:3 (50.0%)
Same OS:2 (33.3%)
From: AlberT at SuperAlberT dot it Assigned:
Status: No Feedback Package: Semaphore related
PHP Version: 4.1.2 OS: Linux 2.4.18
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: AlberT at SuperAlberT dot it
New email:
PHP Version: OS:

 

 [2002-04-29 14:28 UTC] AlberT at SuperAlberT dot it
sem_acquire() function has this behavior:

After processing a request, any semaphores acquired by the process but not explicitly released will be released automatically and a warning will be generated. 

This is not a great thing, infact in this way the readers/writers classical IPC problem, with writers precedence is impossible to implement !!!

I think an option to disable autorelease is usefull.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:51 UTC] jani@php.net
-Package: Feature/Change Request +Package: Semaphore related
 [2019-04-01 22:16 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2019-04-01 22:16 UTC] kalle@php.net
Is this still a thing?

Ps. sorry for the long response time!
 [2019-04-14 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC