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

Diff for /OpenXM/src/oxc/oxc.c between version 1.6 and 1.8

version 1.6, 2000/12/03 14:32:40 version 1.8, 2000/12/14 03:14:01
Line 1 
Line 1 
 /* -*- mode: C -*- */  /* -*- mode: C -*- */
 /* $OpenXM: OpenXM/src/oxc/oxc.c,v 1.5 2000/12/01 07:34:48 ohara Exp $ */  /* $OpenXM: OpenXM/src/oxc/oxc.c,v 1.7 2000/12/14 01:35:58 ohara Exp $ */
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 25  int oxf_connect_dup(char *remote, short port)
Line 25  int oxf_connect_dup(char *remote, short port)
   
 int lf_oxc_open_main(char *cmd, short port)  int lf_oxc_open_main(char *cmd, short port)
 {  {
     int pid = 0;      pid_t pid;
     if (cmd != NULL && (pid = fork()) == 0) {      if ((pid = fork()) == 0) {
         oxf_connect_dup(remote_host, port);          oxf_connect_dup(remote_host, port);
         fprintf(stderr, "oxc: oxc_open(%s, %d)\n", cmd, port);          fprintf(stderr, "oxc: oxc_open(%s, %d)\n", cmd, port);
         execlp(cmd, cmd, NULL);          execlp(cmd, cmd, NULL);
     }      }
     fprintf(stderr, "oxc: cannnot oxc_open(%s, %d).\n", cmd, port);  
     return pid; /* if error, pid == 0 */      return pid; /* if error, pid == 0 */
 }  }
   
Line 111  int main(int argc, char *argv[])
Line 110  int main(int argc, char *argv[])
     }      }
     if (oxlog) {      if (oxlog) {
         execlp(xterm, xterm, "-e", myname,          execlp(xterm, xterm, "-e", myname,
                "-h", remote_host, "-p", port_s, "-c", password);                 "-h", remote_host, "-p", port_s, "-c", password, NULL);
                   fprintf(stderr, "oxc:: cannot exec \"%s oxc ...\"\n", xterm);
     }      }
   
     fprintf(stderr, "start connection!\n");      fprintf(stderr, "start connection!\n");

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

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