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

--- Comment #24 from Yann Ylavic <[email protected]> ---
(In reply to dnie from comment #23)
> 
> In my manual test I get many shm files in my log folder. Once per restart
> and balancer and proxy. They will not deleted.

This is unfortunate, DeleteFile() is documented in MSDN with:

"The DeleteFile function marks a file for deletion on close. Therefore, the
file deletion does not occur until the last handle to the file is closed."

I read this "does not occur until the last handle is closed" as "occurs only
when the last handle is closed", but I must be naive, since:

"The DeleteFile function fails if an application attempts to delete a file that
has other handles open for normal I/O or as a memory-mapped file
(FILE_SHARE_DELETE must have been specified when other handles were opened)."

which seems to indicate that it fails for memory-mapped files *even if*
FILE_SHARE_DELETE was used (i.e. FILE_SHARE_DELETE helps only for "other
handles opened" but not for memory-mapped files)...

If that's the case, it quite complicates things since we have to address the
filesystem leak too.

Let me talk about this on the dev@ mailing list for Windows gurus to help me
out (FILE_FLAG_DELETE_ON_CLOSE? that would require our own slotmem_shm_create()
for Windows specifics).

Anyway, the debug traces (with your personal logs in slotmem_cleanup about
destroy/remove returned values) could help here to confirm what happens at
deletion time.
Also, these traces with and without attachment 33052 applied could possibly
help.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to