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/dll_init.cc | 2 +- > winsup/cygwin/forkable.cc | 40 +++++++-------------------------------- > 2 files changed, 8 insertions(+), 34 deletions(-)
Pushed. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer
signature.asc
Description: PGP signature