Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E68E181A3 for ; Wed, 24 Feb 2016 20:49:49 +0000 (UTC) Received: (qmail 15713 invoked by uid 500); 24 Feb 2016 20:49:33 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 15641 invoked by uid 500); 24 Feb 2016 20:49:33 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 15632 invoked by uid 99); 24 Feb 2016 20:49:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 20:49:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2F0CC1804AB for ; Wed, 24 Feb 2016 20:49:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.671 X-Spam-Level: X-Spam-Status: No, score=0.671 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id u-tkb-7IubWH for ; Wed, 24 Feb 2016 20:49:32 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 3AC005F3A0 for ; Wed, 24 Feb 2016 20:49:32 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A3452E0457 for ; Wed, 24 Feb 2016 20:49:31 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A8F8D3A0052 for ; Wed, 24 Feb 2016 20:49:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1732229 - /httpd/httpd/trunk/server/mpm/motorz/motorz.c Date: Wed, 24 Feb 2016 20:49:31 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160224204931.A8F8D3A0052@svn01-us-west.apache.org> Author: jim Date: Wed Feb 24 20:49:31 2016 New Revision: 1732229 URL: http://svn.apache.org/viewvc?rev=1732229&view=rev Log: use APR Modified: httpd/httpd/trunk/server/mpm/motorz/motorz.c Modified: httpd/httpd/trunk/server/mpm/motorz/motorz.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/motorz/motorz.c?rev=1732229&r1=1732228&r2=1732229&view=diff ============================================================================== --- httpd/httpd/trunk/server/mpm/motorz/motorz.c (original) +++ httpd/httpd/trunk/server/mpm/motorz/motorz.c Wed Feb 24 20:49:31 2016 @@ -524,9 +524,8 @@ static int motorz_setup_pollset(motorz_c int i; apr_status_t rv; int good_methods[] = {APR_POLLSET_KQUEUE, APR_POLLSET_PORT, APR_POLLSET_EPOLL}; - char *methods[] = {"kqueue", "port", "epoll"}; - for (i = 0; i < sizeof(good_methods) / sizeof(void*); i++) { + for (i = 0; i < sizeof(good_methods) / sizeof(good_methods[0]); i++) { rv = apr_pollset_create_ex(&mz->pollset, 512, mz->pool, @@ -534,7 +533,7 @@ static int motorz_setup_pollset(motorz_c good_methods[i]); if (rv == APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, ap_server_conf, APLOGNO(02852) - "motorz_setup_pollset: apr_pollset_create_ex using %s", methods[i]); + "motorz_setup_pollset: apr_pollset_create_ex using %s", apr_pollset_method_name(mz->pollset)); break; } @@ -551,6 +550,8 @@ static int motorz_setup_pollset(motorz_c ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, APLOGNO(02854) "motorz_setup_pollset: apr_pollset_create failed for all possible backends!"); } + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO() + "motorz_setup_pollset: Using %s", apr_pollset_method_name(mz->pollset)); return rv; }