]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
added check on apr_pollset_create() return value. backport from 1.139.
authorJean-Jacques Clar <clar@apache.org>
Wed, 17 Mar 2004 02:05:26 +0000 (02:05 +0000)
committerJean-Jacques Clar <clar@apache.org>
Wed, 17 Mar 2004 02:05:26 +0000 (02:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103009 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 0fe0748d62731d41649bdd36cde0395d3ab48f21..123f21566adf9dfc0a502bb2e708c179a7645485 100644 (file)
@@ -1551,7 +1551,10 @@ static void test(void)
     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) {
@@ -1763,14 +1766,14 @@ static void test(void)
 static void copyright(void)
 {
     if (!use_html) {
-       printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.121.2.8 $> apache-2.0");
+       printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.121.2.9 $> apache-2.0");
        printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
        printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n");
        printf("\n");
     }
     else {
        printf("<p>\n");
-       printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.121.2.8 $");
+       printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.121.2.9 $");
        printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
        printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n");
        printf("</p>\n<p>\n");