httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: apache-1.3/src/main http_main.c
Date Tue, 26 Feb 2002 15:04:53 GMT
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;
  
  
  

Mime
View raw message