commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject cvs commit: jakarta-commons/daemon/src/native/unix/native help.c home.c
Date Mon, 09 Feb 2004 15:14:04 GMT
jfclere     2004/02/09 07:14:04

  Modified:    daemon/src/native/unix/native help.c home.c
  Log:
  Prevent core when jvm.cfg is missing and add traces.
  
  Revision  Changes    Path
  1.3       +4 -2      jakarta-commons/daemon/src/native/unix/native/help.c
  
  Index: help.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/help.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- help.c	16 Sep 2003 11:50:16 -0000	1.2
  +++ help.c	9 Feb 2004 15:14:04 -0000	1.3
  @@ -69,7 +69,9 @@
       printf("    -jvm <JVM name>\n");
       printf("        use a specific Java Virtual Machine. Available JVMs:\n");
       printf("           ");
  -    for (x=0; x<data->jnum; x++) printf(" '%s'",data->jvms[x]->name);
  +    for (x=0; x<data->jnum; x++) {
  +      printf(" '%s'",PRINT_NULL(data->jvms[x]->name));
  +    }
       printf("\n");
   
       printf("    -cp / -classpath <directories and zip/jar files>\n");
  
  
  
  1.6       +5 -2      jakarta-commons/daemon/src/native/unix/native/home.c
  
  Index: home.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/home.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- home.c	19 Jan 2004 02:21:19 -0000	1.5
  +++ home.c	9 Feb 2004 15:14:04 -0000	1.6
  @@ -84,7 +84,10 @@
       char *ret=NULL, *sp;
       char buf[1024];
   
  -    if (cfgf==NULL) return(false);
  +    if (cfgf==NULL) {
  +      log_debug("Can't open %s\n",data->cfgf);
  +      return(false);
  +    }
   
       data->jvms=(home_jvm **)malloc(256*sizeof(home_jvm *));
   
  
  
  

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


Mime
View raw message