https://bz.apache.org/bugzilla/show_bug.cgi?id=62044

Yann Ylavic <ylavic....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35698|0                           |1
        is obsolete|                            |

--- Comment #14 from Yann Ylavic <ylavic....@gmail.com> ---
Created attachment 35702
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35702&action=edit
slotmem SHMs reuse (2.4.x)

This patch does:
1/ use a constant file name for all systems (no generation suffix),
2/ maintain the list of the created SHMs *accross restarts*
3/ not unlink the files on (graceful) restart anymore (not needed),
4/ not attach in slotmem_create() anymore (not needed),
5/ add type/sizes consistency check for persisted slots on restoration,
6/ unlink the files only on stop/exit or before creating them (crash
remainder).

Mark, could you please try it?

I think we could avoid 6/ if we remove the file just after the SHM is created.
This would work for systems with "unlink semantics" (i.e. unlink allowed while
some descriptors are opened even if it really happens when the last one is
closed, since we don't need to re-open them now), but not for others so I kept
the code generic to start with...

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to