AP_DECLARE(apr_status_t) ap_mpm_podx_open(apr_pool_t *p, ap_pod_t **pod)
{
apr_status_t rv;
-
+
*pod = apr_palloc(p, sizeof(**pod));
rv = apr_file_pipe_create(&((*pod)->pod_in), &((*pod)->pod_out), p);
if (rv != APR_SUCCESS) {
apr_file_pipe_timeout_set((*pod)->pod_in, 0);
*/
(*pod)->p = p;
-
+
/* close these before exec. */
apr_file_inherit_unset((*pod)->pod_in);
apr_file_inherit_unset((*pod)->pod_out);
-
+
return APR_SUCCESS;
}
char c;
apr_os_file_t fd;
int rc;
-
+
/* we need to surface EINTR so we'll have to grab the
* native file descriptor and do the OS read() ourselves
*/
AP_DECLARE(apr_status_t) ap_mpm_podx_close(ap_pod_t *pod)
{
apr_status_t rv;
-
+
rv = apr_file_close(pod->pod_out);
if (rv != APR_SUCCESS) {
return rv;
}
-
+
rv = apr_file_close(pod->pod_in);
if (rv != APR_SUCCESS) {
return rv;
case AP_MPM_PODX_NORESTART:
break;
}
-
+
rv = apr_file_write(pod->pod_out, &char_of_death, &one);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf, APLOGNO(2404)
{
int i;
apr_status_t rv = APR_SUCCESS;
-
+
for (i = 0; i < num && rv == APR_SUCCESS; i++) {
rv = podx_signal_internal(pod, graceful);
}