manoj       99/10/26 23:16:49

  Modified:    src/modules/mpm/dexter dexter.c
  Log:
  A little bit of error logging to help with debugging.
  
  Revision  Changes    Path
  1.49      +9 -2      apache-2.0/src/modules/mpm/dexter/dexter.c
  
  Index: dexter.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/mpm/dexter/dexter.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -d -u -r1.48 -r1.49
  --- dexter.c  1999/10/27 06:11:19     1.48
  +++ dexter.c  1999/10/27 06:16:48     1.49
  @@ -743,8 +743,11 @@
       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 @@
           }
       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);
  
  
  

Reply via email to