[PATCH] winsup/cygwin: Protect fork() against dll- and exe-updates.
cyg Simple
cygsimple@gmail.com
Fri Aug 7 15:01:00 GMT 2015
On 8/3/2015 4:21 PM, Corinna Vinschen wrote:
>
> The HMODULE is only the address of the section so, no, there's no way to
> do an NtCreateFile with this information alone. As for the file id, I
> never tried NtOpenFile w/ FILE_OPEN_BY_FILE_ID. The usage description
> in the WDK docs is a bit vague, but it does work. You just have to have
> the file id from some earlier call to NtQueryInformationFile.
>
I seem to remember that the file id isn't guaranteed to be constant on
Windows FS, especially FAT, unless you keep the file open.
--
cyg Simple
More information about the Cygwin-developers
mailing list