On Mon, Sep 14, 2015 at 4:42 PM, Eric Covener <[email protected]> wrote: > On Mon, Sep 14, 2015 at 10:15 AM, Yann Ylavic <[email protected]> wrote: >> So maybe we need a general ap_shm_create() wrapper usable wherever it may >> help? >> At least until a new APR_SHM_DELONCLOSE flag is added to apr_shm_create_ex()? > > > Sorry I was not too clear. The disk-cache issue is not SHM specific, > just the failure-on-delete-of-open-file.
Oh I see, I guess FILE_FLAG_DELETE_ON_CLOSE is not suitable there since files are opened/closed by different processes... But if I read DeleteFile() doc correctly, for non-mapped files it should work (delayed until the last handle is closed), or really DeleteFile() is not documented correctly!
