Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 85149 invoked by uid 500); 26 Feb 2002 15:04:53 -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: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 85137 invoked by uid 500); 26 Feb 2002 15:04:53 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Date: 26 Feb 2002 15:04:53 -0000 Message-ID: <20020226150453.72898.qmail@icarus.apache.org> From: stoddard@apache.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src/main http_main.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stoddard 02/02/26 07:04:53 Modified: src/main http_main.c Log: Win32: Log an error when create_thread fails. Revision Changes Path 1.576 +4 -0 apache-1.3/src/main/http_main.c Index: http_main.c =================================================================== RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v retrieving revision 1.575 retrieving revision 1.576 diff -u -r1.575 -r1.576 --- http_main.c 26 Feb 2002 15:01:35 -0000 1.575 +++ http_main.c 26 Feb 2002 15:04:53 -0000 1.576 @@ -6384,6 +6384,10 @@ child_handles = (thread *) alloca(nthreads * sizeof(int)); for (i = 0; i < nthreads; i++) { child_handles[i] = create_thread((void (*)(void *)) child_main, (void *) i); + if (child_handles[i] == 0) { + ap_log_error(APLOG_MARK, APLOG_ERR, server_conf, + "create_thread rc = %d", errno); + } } if (nthreads > max_daemons_limit) { max_daemons_limit = nthreads;