Lines Matching defs:ocr

59     apr_other_child_rec_t *ocr;
61 ocr = apr_palloc(p, sizeof(*ocr));
62 ocr->p = p;
63 ocr->proc = proc;
64 ocr->maintenance = maintenance;
65 ocr->data = data;
67 ocr->write_fd = (apr_os_file_t) -1;
74 ocr->write_fd = write_fd->filehand;
76 ocr->write_fd = write_fd->filedes;
80 ocr->next = other_children;
81 other_children = ocr;
82 apr_pool_cleanup_register(p, ocr->data, other_child_cleanup,
107 apr_other_child_rec_t *ocr, *nocr;
109 for (ocr = other_children; ocr; ocr = nocr) {
110 nocr = ocr->next;
111 if (ocr->proc->pid != proc->pid)
114 ocr->proc = NULL;
115 (*ocr->maintenance) (reason, ocr->data, status);
121 APR_DECLARE(void) apr_proc_other_child_refresh(apr_other_child_rec_t *ocr,
130 if (ocr->proc == NULL)
133 if (!ocr->proc->hproc) {
137 ocr->proc = NULL;
138 (*ocr->maintenance) (APR_OC_REASON_LOST, ocr->data, -1);
140 else if (!GetExitCodeProcess(ocr->proc->hproc, &status)) {
141 CloseHandle(ocr->proc->hproc);
142 ocr->proc->hproc = NULL;
143 ocr->proc = NULL;
144 (*ocr->maintenance) (APR_OC_REASON_LOST, ocr->data, -1);
147 (*ocr->maintenance) (reason, ocr->data, -1);
150 CloseHandle(ocr->proc->hproc);
151 ocr->proc->hproc = NULL;
152 ocr->proc = NULL;
153 (*ocr->maintenance) (APR_OC_REASON_DEATH, ocr->data, status);
160 if (ocr->proc == NULL)
163 waitret = waitpid(ocr->proc->pid, &status, WNOHANG);
164 if (waitret == ocr->proc->pid) {
165 ocr->proc = NULL;
166 (*ocr->maintenance) (APR_OC_REASON_DEATH, ocr->data, status);
169 (*ocr->maintenance) (reason, ocr->data, -1);
173 ocr->proc = NULL;
174 (*ocr->maintenance) (APR_OC_REASON_LOST, ocr->data, -1);
181 apr_other_child_rec_t *ocr, *next_ocr;
183 for (ocr = other_children; ocr; ocr = next_ocr) {
184 next_ocr = ocr->next;
185 apr_proc_other_child_refresh(ocr, reason);
210 APR_DECLARE(void) apr_proc_other_child_refresh(apr_other_child_rec_t *ocr,