This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Public key authorization problem with latest snapshot
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Thu, 20 Mar 2014 01:58:43 +0400
- Subject: Re: Public key authorization problem with latest snapshot
- Authentication-results: sourceware.org; auth=none
- References: <5329B9D0 dot 6070703 at cornell dot edu> <20140319160914 dot GD2715 at calimero dot vinschen dot de> <5329C9EF dot 1000305 at cornell dot edu> <20140319170508 dot GF2715 at calimero dot vinschen dot de>
- Reply-to: cygwin at cygwin dot com
Greetings, Corinna Vinschen!
> The code is now practically equivalent to what is in 1.7.28. Only the
> VectoredContinueHandler, which was the reason Cygwin's exception handler
> could be called twice, is not called anymore. Instead there's a vectored
> exception handler which is only called during debugging.
> Before:
> if (!handler_installed)
> {
> handler_installed = true;
> SetUnhandledExceptionFilter (handle);
> AddVectoredContinueHandler (1, handle);
> }
> After:
> if (!handler_installed)
> {
> handler_installed = true;
> SetUnhandledExceptionFilter (handle);
> AddVectoredExceptionHandler (1, handle_while_being_debugged);
> }
> If anybody can explain this weird behaviour, please educate me.
I can't explain the behavior, but I could say, that setting
"handler_installed = true;" before the handler is actually installed is not
quite right.
Unless that variable is used inside either of two functions called afterward,
I would move it down to the end of `if' block.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 20.03.2014, <01:56>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple