delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/11:55:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <48781a66050510085450bd1339@mail.gmail.com>
Date: Tue, 10 May 2005 11:54:45 -0400
From: "William M. (Mike) Miller" <william DOT m DOT miller AT gmail DOT com>
Reply-To: "William M. (Mike) Miller" <william DOT m DOT miller AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Static destructors not running
In-Reply-To: <20050510153512.GZ15665@trixie.casa.cgf.cx>
Mime-Version: 1.0
References: <48781a66050509154660edcc78 AT mail DOT gmail DOT com> <SERRANONlJbSorxTjtR000002ab AT SERRANO DOT CAM DOT ARTIMI DOT COM> <48781a6605051006066aa9b036 AT mail DOT gmail DOT com> <20050510153512 DOT GZ15665 AT trixie DOT casa DOT cgf DOT cx>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j4AFt9vl016490

On 5/10/05, Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> wrote:
> On Tue, May 10, 2005 at 09:06:36AM -0400, William M. (Mike) Miller wrote:
> >I'm still left with the problem of figuring out what changed to cause
> >this result.  Until I ran the "setup" application last Friday, I was
> >seeing output from static destructors, and now I don't.  It would
> >save me a lot of work to be able to restore the old behavior, but I
> >don't know what was responsible for this change.
> 
> Just as a wild guess, does explicitly calling exit help at all?

Yes, the output does appear when I call exit instead of returning
from main().  Unfortunately, that's not an option.  For one thing,
this is shared code that works just fine on other systems (and
under Cygwin until I updated last Friday).  For another, the
semantics of calling exit in main() are not exactly the same as
returning from main() -- local automatic objects in main() are not
destroyed by the exit() call, which is something some of this
code that is now failing relies on.

Thanks for the suggestion, though.

-- 
William M. (Mike) Miller | Edison Design Group
william DOT m DOT miller AT gmail DOT 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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019