tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_lb_worker.c
Date Sat, 12 Feb 2005 19:22:35 GMT
mturk       2005/02/12 11:22:35

  Modified:    jk/native/common jk_lb_worker.c
  Log:
  Log as error if shm_alloc fails.
  
  Revision  Changes    Path
  1.46      +3 -2      jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- jk_lb_worker.c	12 Feb 2005 16:59:45 -0000	1.45
  +++ jk_lb_worker.c	12 Feb 2005 19:22:35 -0000	1.46
  @@ -582,11 +582,12 @@
               for (i = 0; i < num_of_workers; i++) {
                   p->lb_workers[i].s = jk_shm_alloc(&p->p, sizeof(jk_shm_worker_t));
                   if (p->lb_workers[i].s == NULL) {
  +                    jk_log(l, JK_LOG_ERROR, 
  +                           "allocating worker record from shared memory");
                       JK_TRACE_EXIT(l);
                       return JK_FALSE;
                   }
               }
  -
               for (i = 0; i < num_of_workers; i++) {
                   strncpy(p->lb_workers[i].s->name, worker_names[i],
                           JK_SHM_STR_SIZ);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message