]> granicus.if.org Git - apache/commitdiff
when handling a graceful restart, kill the child using the correct handle
authorJeff Trawick <trawick@apache.org>
Tue, 3 Apr 2001 18:50:07 +0000 (18:50 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 3 Apr 2001 18:50:07 +0000 (18:50 +0000)
to the pipe of death; otherwise the syscall fails

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

server/mpm/threaded/threaded.c

index a15f39cad7c72940ea5efebc396806ff191857c4..4a0a3f7a53f94f92e693cb7c1989aa3cb1c1ef78 100644 (file)
@@ -1113,7 +1113,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
 
        /* give the children the signal to die */
         for (i = 0; i < ap_daemons_limit;) {
-            if ((rv = apr_file_write(pipe_of_death_in, &char_of_death, &one)) != APR_SUCCESS) {
+            if ((rv = apr_file_write(pipe_of_death_out, &char_of_death, &one)) != APR_SUCCESS) {
                 if (APR_STATUS_IS_EINTR(rv)) continue;
                 ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf, "write pipe_of_death");
             }