[BACK]Return to run.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/distrib/utils/sysinst/Attic/run.c between version 1.42 and 1.43

version 1.42, 2003/07/07 12:30:22 version 1.43, 2003/07/10 13:36:48
Line 436  loop:
Line 436  loop:
         /* from here on out, we take tty signals ourselves */          /* from here on out, we take tty signals ourselves */
         ttysig_forward = 0;          ttysig_forward = 0;
   
         (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &tt);          reset_prog_mode();
   
         if (WIFEXITED(status)) {          if (WIFEXITED(status)) {
                 *errstr = "command failed";                  *errstr = "command failed";
Line 476  run_prog(int flags, msg errmsg, const ch
Line 476  run_prog(int flags, msg errmsg, const ch
                 if (**aps != '\0')                  if (**aps != '\0')
                         ++aps;                          ++aps;
   
           /* Make curses save tty settings */
           def_prog_mode();
   
         (void)ioctl(STDIN_FILENO, TIOCGWINSZ, &win);          (void)ioctl(STDIN_FILENO, TIOCGWINSZ, &win);
         /* Apparently, we sometimes get 0x0 back, and that's not useful */          /* Apparently, we sometimes get 0x0 back, and that's not useful */
         if (win.ws_row == 0)          if (win.ws_row == 0)
Line 581  done:
Line 584  done:
                 ret = launch_subwin(NULL, args, &win, flags, &errstr);                  ret = launch_subwin(NULL, args, &win, flags, &errstr);
         }          }
         va_end(ap);          va_end(ap);
           /* restore tty setting we saved earlier */
           reset_prog_mode();
         if ((flags & RUN_FATAL) != 0 && ret != 0)          if ((flags & RUN_FATAL) != 0 && ret != 0)
                 exit(ret);                  exit(ret);
         if (ret && errmsg != MSG_NONE) {          if (ret && errmsg != MSG_NONE) {

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

CVSweb <webmaster@jp.NetBSD.org>