summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-02-25 01:11:10 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-02-25 01:11:10 +0000
commit30d64fb554fe7f87fabaad34f1082dfd65a7f1c3 (patch)
treee168fa9ee34ed0b6d9761a2d0dfd34ed35d72857 /misc
parent5ff5c89466367e6970c054383487162bed66ae3a (diff)
downloadlibapr-30d64fb554fe7f87fabaad34f1082dfd65a7f1c3.tar.gz
If we no longer have proc->hproc, the proc itself is now useless.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64382 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/unix/otherchild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/unix/otherchild.c b/misc/unix/otherchild.c
index b90ebe41e..38d147bf9 100644
--- a/misc/unix/otherchild.c
+++ b/misc/unix/otherchild.c
@@ -172,10 +172,12 @@ APR_DECLARE(void) apr_proc_other_child_refresh(apr_other_child_rec_t *ocr,
/* Already mopped up, perhaps we apr_proc_kill'ed it,
* they should have already unregistered!
*/
+ ocr->proc = NULL;
(*ocr->maintenance) (APR_OC_REASON_LOST, ocr->data, -1);
}
else if (!GetExitCodeProcess(ocr->proc->hproc, &status)) {
CloseHandle(ocr->proc->hproc);
+ ocr->proc->hproc = NULL;
ocr->proc = NULL;
(*ocr->maintenance) (APR_OC_REASON_LOST, ocr->data, -1);
}