Lines Matching defs:pod
432 AP_DECLARE(apr_status_t) ap_mpm_pod_open(apr_pool_t *p, ap_pod_t **pod)
436 *pod = apr_palloc(p, sizeof(**pod));
437 rv = apr_file_pipe_create_ex(&((*pod)->pod_in), &((*pod)->pod_out),
443 apr_file_pipe_timeout_set((*pod)->pod_in, 0);
444 (*pod)->p = p;
447 apr_file_inherit_unset((*pod)->pod_in);
448 apr_file_inherit_unset((*pod)->pod_out);
453 AP_DECLARE(apr_status_t) ap_mpm_pod_check(ap_pod_t *pod)
459 rv = apr_file_read(pod->pod_in, &c, &len);
472 AP_DECLARE(apr_status_t) ap_mpm_pod_close(ap_pod_t *pod)
476 rv = apr_file_close(pod->pod_out);
481 rv = apr_file_close(pod->pod_in);
489 static apr_status_t pod_signal_internal(ap_pod_t *pod)
495 rv = apr_file_write(pod->pod_out, &char_of_death, &one);
504 AP_DECLARE(apr_status_t) ap_mpm_podx_open(apr_pool_t *p, ap_pod_t **pod)
508 *pod = apr_palloc(p, sizeof(**pod));
509 rv = apr_file_pipe_create(&((*pod)->pod_in), &((*pod)->pod_out), p);
514 apr_file_pipe_timeout_set((*pod)->pod_in, 0);
516 (*pod)->p = p;
519 apr_file_inherit_unset((*pod)->pod_in);
520 apr_file_inherit_unset((*pod)->pod_out);
525 AP_DECLARE(int) ap_mpm_podx_check(ap_pod_t *pod)
534 apr_os_file_get(&fd, pod->pod_in);
547 AP_DECLARE(apr_status_t) ap_mpm_podx_close(ap_pod_t *pod)
551 rv = apr_file_close(pod->pod_out);
556 rv = apr_file_close(pod->pod_in);
563 static apr_status_t podx_signal_internal(ap_pod_t *pod,
580 rv = apr_file_write(pod->pod_out, &char_of_death, &one);
588 AP_DECLARE(apr_status_t) ap_mpm_podx_signal(ap_pod_t * pod,
591 return podx_signal_internal(pod, graceful);
594 AP_DECLARE(void) ap_mpm_podx_killpg(ap_pod_t * pod, int num,
601 rv = podx_signal_internal(pod, graceful);
609 * when the pod is used. */
610 static apr_status_t dummy_connection(ap_pod_t *pod)
620 rv = apr_pool_create(&p, pod->p);
715 AP_DECLARE(apr_status_t) ap_mpm_pod_signal(ap_pod_t *pod)
719 rv = pod_signal_internal(pod);
724 return dummy_connection(pod);
727 void ap_mpm_pod_killpg(ap_pod_t *pod, int num)
732 /* we don't write anything to the pod here... we assume
733 * that the would-be reader of the pod has another way to
736 * writing lots of things to the pod at once is very
751 rv = dummy_connection(pod);