|  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: 2010-12-03 17:51 UTC
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: Open 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.
Block user comment
Status: Assign to:
Bug Type:
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:51 UTC]
-Package: Feature/Change Request +Package: Semaphore related
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Mar 26 10:01:25 2019 UTC