X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B630818.9040306@gmail.com> Date: Fri, 29 Jan 2010 16:08:56 +0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: dlclose not calling destructors of static variables. References: <4B61732F DOT 4030804 AT gmail DOT com> <4B62DDE6 DOT 5070106 AT gmail DOT com> <4B62F118 DOT 8010305 AT gmail DOT com> <4B62FD82 DOT 8020208 AT gmail DOT com> <4B62FEA0 DOT 6040700 AT gmail DOT com> In-Reply-To: <4B62FEA0.6040700@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 29/01/2010 15:28, Andrew West wrote: > Ah o.k. So is there any documentation on how Cygwin should do things > differently? Only the source so far, but I'll add some when I fix this. > Should atexit be used for both executables and library > static destructors? Is there a reason for not using __cxa_atexit? The user should use the cd-tor attributes, as you have done, and the tool chain should make it "just work", which (without having double-checked yet today) will probably involve a bit of new code in the cygwin dll. cheers, DaveK -- 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