diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-17 20:00:07 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-17 20:00:07 +0000 |
commit | c7936d9c334a4e05aaf53a16a84abeb5aee6ce4b (patch) | |
tree | b08bc3edfe413daa28f413bc7a92ee650f30ff36 /memory | |
parent | 2d80e7f1deb9690046fc9faa4d0e253efe6c7757 (diff) | |
download | libapr-c7936d9c334a4e05aaf53a16a84abeb5aee6ce4b.tar.gz |
Fix two odd bits of breakage. Don't you just -love- casts?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r-- | memory/unix/apr_pools.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 7fd92d53c..589340461 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -1466,11 +1466,15 @@ static void free_proc_chain(struct process_chain *procs) } #ifdef WIN32 /* - * Do we need an APR function to clean-up a proc_t? + * XXX: Do we need an APR function to clean-up a proc_t? + * Well ... yeah ... but we can't since it's scope is ill defined. */ { for (p = procs; p; p = p->next) { - CloseHandle((HANDLE)p->pid->pid); + if (p->pid->hproc) { + CloseHandle(p->pid->hproc); + p->pid->hproc = NULL; + } } } #endif /* WIN32 */ |