From: Ryan Bloom Date: Fri, 8 Jun 2001 04:55:44 +0000 (+0000) Subject: It helps to write to the input side of the pipe, and read from the output X-Git-Tag: 2.0.19~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ddaac5e95f79c9c293340b7099b699237fae83f;p=thirdparty%2Fapache%2Fhttpd.git It helps to write to the input side of the pipe, and read from the output side. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89303 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm_common.c b/server/mpm_common.c index dcc51120bbe..fa389bea876 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -358,7 +358,7 @@ AP_DECLARE(apr_status_t) ap_mpm_pod_check(ap_pod_t *pod) apr_size_t len = 1; apr_status_t rv; - rv = apr_file_read(pod->pod_in, &c, &len); + rv = apr_file_read(pod->pod_out, &c, &len); if ((rv == APR_SUCCESS) && (len == 1)) { return APR_SUCCESS; @@ -394,7 +394,7 @@ AP_DECLARE(apr_status_t) ap_mpm_pod_signal(ap_pod_t *pod) apr_size_t one = 1; do { - rv = apr_file_write(pod->pod_out, &char_of_death, &one); + rv = apr_file_write(pod->pod_in, &char_of_death, &one); } while (APR_STATUS_IS_EINTR(rv)); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,