Static destructors not running

William M. (Mike) Miller william.m.miller@gmail.com
Tue May 10 20:25:00 GMT 2005


On 5/10/05, Christopher Faylor <cgf-no-personal-reply-please@cygwin.com> wrote:
> On Tue, May 10, 2005 at 03:27:02PM -0400, William M. (Mike) Miller wrote:
> >On 5/10/05, Christopher Faylor <cgf-no-personal-reply-please@cygwin.com> wrote:
> >> Previous to 1.5.16, static destructors were always called via a
> >> gcc "atexit" mechanism.  This meant that there were scenarios where
> >> destructors would not be called at all so I made cygwin's exit call
> >> the destructors explicitly.   I just forgot to make cygwin do the right
> >> thing when returning from main rather than exiting.  This will be
> >> fixed in the next snapshot.
> >
> >Sorry, one more question.  I thought from the above that
> >reinstalling 1.5.15 would restore the previous behavior for static
> >destructors.  According to cygcheck, I now have cygwin 1.5.15-1
> >installed, but I still don't see the static destructor output.  Is there
> >something else I need to revert while waiting for the fix?
> 
> Install the snapshot:  http://cygwin.com/snapshots/

Yep, fixed.  Thanks again.

-- 
William M. (Mike) Miller | Edison Design Group
william.m.miller@gmail.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list