diff options
author | Jeff Trawick <trawick@apache.org> | 2001-06-07 19:22:12 +0200 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-06-07 19:22:12 +0200 |
commit | 11ce365075d58bc4a8dc11b7b0ef6ffe1e23d640 (patch) | |
tree | ced7a5273d2cfd5651f09fb2bcbb084e19c6c578 /server/mpm_common.c | |
parent | check the pod in the child at a different spot so that we check it (diff) | |
download | apache2-11ce365075d58bc4a8dc11b7b0ef6ffe1e23d640.tar.xz apache2-11ce365075d58bc4a8dc11b7b0ef6ffe1e23d640.zip |
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
Diffstat (limited to 'server/mpm_common.c')
-rw-r--r-- | server/mpm_common.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c index a9d792014d..dcc51120bb 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -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; |