[BACK]Return to oxlog.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kxx

Diff for /OpenXM/src/kxx/oxlog.c between version 1.9 and 1.10

version 1.9, 2001/05/06 07:53:00 version 1.10, 2003/11/20 07:18:41
Line 1 
Line 1 
 /*$OpenXM: OpenXM/src/kxx/oxlog.c,v 1.8 2000/06/19 07:48:01 ohara Exp $*/  /*$OpenXM: OpenXM/src/kxx/oxlog.c,v 1.9 2001/05/06 07:53:00 takayama Exp $*/
 #include <stdio.h>  #include <stdio.h>
 #include <signal.h>  #include <signal.h>
 #include <string.h>  #include <string.h>
Line 22 
Line 22 
           2     3            2     3
 */  */
 static int Debug_which = 1;  static int Debug_which = 1;
   extern char **environ;
   
 /*which("xterm", getenv("PATH"));*/  /*which("xterm", getenv("PATH"));*/
 char *which(char *prog, char *path_env)  char *which(char *prog, char *path_env)
Line 87  int main(int argc, char *argv[])
Line 88  int main(int argc, char *argv[])
     if (oxname == NULL) {      if (oxname == NULL) {
       oxname = "NULL";        oxname = "NULL";
     } /* Why? */      } /* Why? */
     execv(oxname, argv+1);  
       /*
           {
             int i;
             i=0;
             while (environ[i] != NULL) {
                   fprintf(stderr,"%s ",environ[i++]);
             }
             fprintf(stderr,"\n");
           }
       */
   
       execve(oxname, argv+1,environ);
   
     fprintf(stderr, "\nError in oxlog: Failed to start the process.\n");      fprintf(stderr, "\nError in oxlog: Failed to start the process.\n");
     fprintf(stderr, "oxname=%s\n", oxname);      fprintf(stderr, "oxname=%s\n", oxname);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>