apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apr/test testmd5.c
Date Sat, 31 Mar 2001 21:47:05 GMT
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/

Mime
View raw message