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: 2010-12-03 17:51 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: Open Package: Semaphore related
PHP Version: 4.1.2 OS: Linux 2.4.18
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Mar 26 10:01:25 2019 UTC