diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-22 23:56:23 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-22 23:56:23 +0000 |
commit | bac68779f82e83cde2e36cc71b68b8de6d3d7376 (patch) | |
tree | 6f4815f7d03ab3b9e8a45e7444e027bdd466c0e2 /test/testshm.c | |
parent | 91ef2de2c79231c51f1454e1e5dd4835fc78376f (diff) | |
download | libapr-bac68779f82e83cde2e36cc71b68b8de6d3d7376.tar.gz |
Delete the apr_shm_t when we're done with it. (This didn't work before,
but I'm about to commit the implementation.)
Add more verbose status/error messages -- most importantly making it
obvious from which child (consumer or producer) the messages are comming
from.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testshm.c')
-rw-r--r-- | test/testshm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/testshm.c b/test/testshm.c index 107ae390a..4592897c7 100644 --- a/test/testshm.c +++ b/test/testshm.c @@ -170,6 +170,14 @@ static apr_status_t test_anon(apr_pool_t *parpool) return errno; } + printf("Destroying shared memory segment..."); + rv = apr_shm_destroy(shm); + if (rv != APR_SUCCESS) { + printf("FAILED\n"); + return rv; + } + printf("OK\n"); + apr_pool_destroy(pool); return APR_SUCCESS; @@ -262,6 +270,14 @@ static apr_status_t test_named(apr_pool_t *parpool) return APR_EGENERAL; } + printf("Destroying shared memory segment..."); + rv = apr_shm_destroy(shm); + if (rv != APR_SUCCESS) { + printf("FAILED\n"); + return rv; + } + printf("OK\n"); + apr_pool_destroy(pool); return APR_SUCCESS; |