php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #44121 SHMOP : would be nice to have a function that returns shm_nattch value.
Submitted: 2008-02-14 15:22 UTC Modified: -
From: thornza at yahoo dot com Assigned:
Status: Open Package: Feature/Change Request
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thornza at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-02-14 15:22 UTC] thornza at yahoo dot com
Description:
------------
In order to effectively recover shared memory after an Apache process crash, it would be useful to attach to the shared memory segment and then be able to tell whether or not you are the only process that is currently attached. This way you will be able to check some value in shared mem and tell whether or not that value is lying around due to a program crash.

This functionality could also be useful to implement reference counting for the shared mem. The last process to detach from the mem segment can remove it.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 16:01:31 2024 UTC