Commit 9a49a006 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

trace failures of a couple of crucial socket calls in ap_mpm_pod_signal()


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89296 13f79535-47bb-0310-9956-ffa450edef68
parent 082c6484
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -403,8 +403,18 @@ AP_DECLARE(apr_status_t) ap_mpm_pod_signal(ap_pod_t *pod)
    }
    
    apr_sockaddr_info_get(&sa, "127.0.0.1", APR_UNSPEC, ap_listeners->bind_addr->port, 0, pod->p);
    apr_socket_create(&sock, sa->family, SOCK_STREAM, pod->p);
    apr_connect(sock, sa);    
    rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, pod->p);
    if (rv != APR_SUCCESS) {
        ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,
                     "get socket to connect to listener");
        return rv;
    }
    rv = apr_connect(sock, sa);    
    if (rv != APR_SUCCESS) {
        ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,
                     "connect to listener");
        return rv;
    }
    apr_socket_close(sock);

    return APR_SUCCESS;