httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: httpd-2.0/support ab.c
Date Wed, 17 Mar 2004 02:05:26 GMT
clar        2004/03/16 18:05:26

  Modified:    support  Tag: APACHE_2_0_BRANCH ab.c
  Log:
  added check on apr_pollset_create() return value. backport from 1.139.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.121.2.9 +6 -3      httpd-2.0/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/ab.c,v
  retrieving revision 1.121.2.8
  retrieving revision 1.121.2.9
  diff -u -r1.121.2.8 -r1.121.2.9
  --- ab.c	9 Feb 2004 20:59:49 -0000	1.121.2.8
  +++ ab.c	17 Mar 2004 02:05:26 -0000	1.121.2.9
  @@ -1551,7 +1551,10 @@
       con = calloc(concurrency * sizeof(struct connection), 1);
       
       stats = calloc(requests * sizeof(struct data), 1);
  -    apr_pollset_create(&readbits, concurrency, cntxt, 0);
  +
  +    if ((status = apr_pollset_create(&readbits, concurrency, cntxt, 0)) != APR_SUCCESS)
{
  +        apr_err("apr_pollset_create failed", status);
  +    }
   
       /* setup request */
       if (posting <= 0) {
  
  
  

Mime
View raw message