From dev-return-1756-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sat Mar 31 21:46:08 2001 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 58565 invoked by uid 500); 31 Mar 2001 21:46:08 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 58554 invoked from network); 31 Mar 2001 21:46:07 -0000 X-Authentication-Warning: kurgan.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Sat, 31 Mar 2001 13:47:05 -0800 From: Greg Stein To: dev@apr.apache.org Subject: Re: cvs commit: apr/test testmd5.c Message-ID: <20010331134705.X27539@lyra.org> Mail-Followup-To: dev@apr.apache.org References: <20010331072906.6552.qmail@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010331072906.6552.qmail@apache.org>; from wrowe@apache.org on Sat, Mar 31, 2001 at 07:29:06AM -0000 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N What's the problem? Are you saying that we can't ever use atexit(apr_terminate) ?? We do this in many places, so let's hear a bit more about what is wrong... Cheers, -g On Sat, Mar 31, 2001 at 07:29:06AM -0000, wrowe@apache.org wrote: > wrowe 01/03/30 23:29:06 > > Modified: test testmd5.c > Log: > This hurts on win32 at the moment, work around apr_terminate > > Revision Changes Path > 1.7 +6 -1 apr/test/testmd5.c > > Index: testmd5.c > =================================================================== > RCS file: /home/cvs/apr/test/testmd5.c,v > retrieving revision 1.6 > retrieving revision 1.7 > diff -u -r1.6 -r1.7 > --- testmd5.c 2001/02/16 04:16:09 1.6 > +++ testmd5.c 2001/03/31 07:29:06 1.7 > @@ -83,6 +83,11 @@ > "\xd1\xa1\xc0\x97\x8a\x60\xbb\xfb\x2a\x25\x46\x9d\xa5\xae\xd0\xb0"} > }; > > +static void closeapr(void) > +{ > + apr_terminate(); > +} > + > static void try(const void *buf, size_t bufLen, apr_xlate_t *xlate, > const void *digest) > { > @@ -152,7 +157,7 @@ > > rv = apr_initialize(); > assert(!rv); > - atexit(apr_terminate); > + atexit(closeapr); > > rv = apr_pool_create(&pool, NULL); > > > > -- Greg Stein, http://www.lyra.org/