summaryrefslogtreecommitdiff
path: root/test/sendfile.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-23 06:00:44 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-23 06:00:44 +0000
commit63c9fe00bbe7fa8d18728cbf3fdb161d010689f6 (patch)
tree94ade51ac80aa48534184f757828b8a687dd1698 /test/sendfile.c
parent409e4332eed92d57ffb3e7bc44b68cd346345bf4 (diff)
downloadlibapr-63c9fe00bbe7fa8d18728cbf3fdb161d010689f6.tar.gz
Commit a bunch of cleanups to get win32 going again. Note the apr.dsp
built in debug mode is required to actually make these build. There are still todo's for win32 (need cl debug flags, for one). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61100 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/sendfile.c')
-rw-r--r--test/sendfile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/sendfile.c b/test/sendfile.c
index 5f22fdd22..3f4c1c304 100644
--- a/test/sendfile.c
+++ b/test/sendfile.c
@@ -90,6 +90,11 @@ int main(void)
typedef enum {BLK, NONBLK, TIMEOUT} client_socket_mode_t;
+void closeapr(void)
+{
+ apr_terminate();
+}
+
static void apr_setup(apr_pool_t **p, apr_socket_t **sock, int *family)
{
char buf[120];
@@ -103,7 +108,7 @@ static void apr_setup(apr_pool_t **p, apr_socket_t **sock, int *family)
exit(1);
}
- atexit(apr_terminate);
+ atexit(closeapr);
rv = apr_create_pool(p, NULL);
if (rv != APR_SUCCESS) {