This is the mail archive of the cygwin-patches mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cygwin: dll_list: stat_real_file_once with ntname

On May  3 16:14, Michael Haubenwallner wrote:
> NtQueryVirtualMemory for MemorySectionName may return some old path even
> if the process was just started, for when some directory in between was
> renamed - maybe because the NT file cache is hot for the old path still.
> This was seen during gcc bootstrap, returning a MemorySectionName of
> ".../gcc/xgcc.exe" even if started as ".../prev-gcc/xgcc.exe", where the
> directory rename from "gcc" to "prev-gcc" was done the moment before.
> As we stat the module's real file right after loading now, there is no
> point in using NtQueryVirtualMemory with MemorySectionName any more, and
> we can use what GetModuleFileName returned instead.
> ---
>  winsup/cygwin/ |  2 +-
>  winsup/cygwin/ | 40 +++++++--------------------------------
>  2 files changed, 8 insertions(+), 34 deletions(-)



Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]