]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
It helps to write to the input side of the pipe, and read from the output
authorRyan Bloom <rbb@apache.org>
Fri, 8 Jun 2001 04:55:44 +0000 (04:55 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 8 Jun 2001 04:55:44 +0000 (04:55 +0000)
side.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89303 13f79535-47bb-0310-9956-ffa450edef68

server/mpm_common.c

index dcc51120bbec32d6ae1a9c47b9a5a0c46da09159..fa389bea87658f88cf6d6d82f58b770a8273cd9f 100644 (file)
@@ -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,