[PATCH] fix for GetModuleFileName() hang when address is in ntdll.dll (NT4 SP5)

Christopher Faylor cgf@redhat.com
Wed Apr 2 18:29:00 GMT 2003

On Wed, Apr 02, 2003 at 10:17:38AM -0500, Joe Buehler wrote:
>2003-04-02  Joe Buehler  <jhpb@hekimian.com>
>	* exceptions.cc (interruptible): avoid calling GetModuleFileName() 
>	on system DLL

There are two possible more, IMO, correct fixes for this.  1) Find out why GetModuleFileName
is hanging or 2) protect the function in cygwin which is blocking in a system DLL
with a 'sigframe thisframe (mainthread);'

This code used to have a test just like this.  It was changed to *use* GetModuleFileName.


More information about the Cygwin-patches mailing list