]> granicus.if.org Git - apache/commitdiff
A little bit of error logging to help with debugging.
authorManoj Kasichainula <manoj@apache.org>
Wed, 27 Oct 1999 06:16:48 +0000 (06:16 +0000)
committerManoj Kasichainula <manoj@apache.org>
Wed, 27 Oct 1999 06:16:48 +0000 (06:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84042 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/dexter/dexter.c

index 402fe476e2b0b0fcbfcc24c4e6037a47bcfd4b73..e59d5d00cea53396ce20d4244640ac81de8cccbf 100644 (file)
@@ -743,8 +743,11 @@ static void process_socket(ap_context_t *p, ap_socket_t *sock, long conn_id)
     conn_rec *current_conn;
     ap_iol *iol;
     int csd;
+    ap_status_t rv;
 
-    ap_get_os_sock(&csd, sock);
+    if ((rv = ap_get_os_sock(&csd, sock)) != APR_SUCCESS) {
+        ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL, "ap_get_os_sock");
+    }
     sock_disable_nagle(csd);
 
     iol = unix_attach_socket(csd);
@@ -923,7 +926,11 @@ static void *worker_thread(void *arg)
         }
     got_fd:
         if (!workers_may_exit) {
-            ap_accept(&csd, sd, ptrans);
+            ap_status_t rv;
+
+            if ((rv = ap_accept(&csd, sd, ptrans)) != APR_SUCCESS) {
+                ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL, "ap_accept");
+            }
             SAFE_ACCEPT(accept_mutex_off(0));
             SAFE_ACCEPT(intra_mutex_off(0));
            pthread_mutex_lock(&idle_thread_count_mutex);