This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] fix for GetModuleFileName() hang when address is in ntdll.dll (NT4 SP5)
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 2 Apr 2003 13:29:41 -0500
- Subject: Re: [PATCH] fix for GetModuleFileName() hang when address is in ntdll.dll (NT4 SP5)
- References: <3E8AFF12.8040904@hekimian.com>
- Reply-to: cygwin-patches at cygwin dot com
On Wed, Apr 02, 2003 at 10:17:38AM -0500, Joe Buehler wrote:
>2003-04-02 Joe Buehler <jhpb at hekimian dot 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.
cgf