[BACK]Return to fep_main.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / fep

Diff for /OpenXM_contrib2/fep/fep_main.c between version 1.3 and 1.5

version 1.3, 2002/09/18 10:03:28 version 1.5, 2005/01/18 14:20:19
Line 257  DEFAULT:
Line 257  DEFAULT:
     commandv = &argv[1];      commandv = &argv[1];
   
     if (! isatty (0)) {      if (! isatty (0)) {
   #if defined(__INTERIX)
           execvp (*commandv, commandv);
   #else
         execvp (*commandv, commandv, 0);          execvp (*commandv, commandv, 0);
   #endif
         perror (*commandv);          perror (*commandv);
         exit (1);          exit (1);
     }      }
Line 673  swallow_output()
Line 677  swallow_output()
 #include <sys/m_wait.h>  #include <sys/m_wait.h>
 #endif  #endif
   
   #if defined(__INTERIX)
   #define wait3(s,opt,rp)   (waitpid((-1),(s),(opt)))
   #endif
   
 void  void
 catchsig(n)  catchsig(n)
     int n;      int n;
Line 702  exec_to_command(argv)
Line 710  exec_to_command(argv)
      */       */
     t = open ("/dev/tty", 2);      t = open ("/dev/tty", 2);
     if (t >= 0) {      if (t >= 0) {
 #ifndef __CYGWIN32__  #if !defined(__CYGWIN32__) && !defined(__INTERIX)
         ioctl (t, TIOCNOTTY, (char *) 0);          ioctl (t, TIOCNOTTY, (char *) 0);
 #endif  #endif
         (void) close (t);          (void) close (t);
Line 721  exec_to_command(argv)
Line 729  exec_to_command(argv)
 #elif defined(TIOCSETN)  #elif defined(TIOCSETN)
     ioctl (0, TIOCSETN, (char *) & slave_ttymode);      ioctl (0, TIOCSETN, (char *) & slave_ttymode);
 #endif  #endif
   #if defined(__INTERIX)
       execvp (*argv, argv);
   #else
     execvp (*argv, argv, 0);      execvp (*argv, argv, 0);
   #endif
     perror (*argv);      perror (*argv);
     exit (1);      exit (1);
 }  }
Line 1049  usageAndExit()
Line 1061  usageAndExit()
 /*  /*
  * Propagate window size changes to the slave tty.   * Propagate window size changes to the slave tty.
  */   */
 sigwinch()  void sigwinch(int dummy)
 {  {
 #ifdef TIOCGWINSZ                       /* 4.3BSD */  #ifdef TIOCGWINSZ                       /* 4.3BSD */
     struct winsize win;      struct winsize win;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

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