httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_status.c
Date Sat, 27 Jan 2001 23:30:10 GMT
wrowe       01/01/27 15:30:08

  Modified:    modules/generators mod_status.c
  Log:
    Eliminate a gp fault on mpm_winnt since we don't have a scoreboard table.
  
  Revision  Changes    Path
  1.18      +10 -6     httpd-2.0/modules/generators/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_status.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- mod_status.c	2001/01/19 07:04:20	1.17
  +++ mod_status.c	2001/01/27 23:29:39	1.18
  @@ -112,13 +112,17 @@
         ap_get_server_built(), "<br>\n<hr>\n", NULL);
       ap_rvputs(r, "Current Time: ",
         ap_ht_time(r->pool, apr_now(), DEFAULT_TIME_FORMAT, 0), "<br>\n", NULL);
  -    ap_rprintf(r, "\n%d connections currently being processed\n",
  -               server_status->nelts);
  +    
  +    if (server_status) {
  +        ap_rprintf(r, "\n%d connections currently being processed\n",
  +                   server_status->nelts);
   
  -    status_rows = (ap_status_table_row_t *) server_status->elts;
  -    for (i = 0; i < server_status->nelts; i++) {
  -	ap_rprintf(r, "<h2>Connection %ld</h2>\n", status_rows[i].conn_id);
  -        apr_table_do(print_status_value, (void *) r, status_rows[i].data, NULL);
  +        status_rows = (ap_status_table_row_t *) server_status->elts;
  +        for (i = 0; i < server_status->nelts; i++) {
  +	    ap_rprintf(r, "<h2>Connection %ld</h2>\n", status_rows[i].conn_id);
  +            apr_table_do(print_status_value, (void *) r, status_rows[i].data, 
  +                         NULL);
  +        }
       }
       ap_rputs("</body></html>\n", r);
       return 0;
  
  
  

Mime
View raw message