[BACK]Return to clientloop.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/clientloop.c between version 1.215 and 1.216

version 1.215, 2009/11/17 05:31:44 version 1.216, 2010/01/09 05:04:24
Line 122 
Line 122 
  */   */
 extern char *host;  extern char *host;
   
   /* Force TTY allocation */
   extern int force_tty_flag;
   
 /*  /*
  * Flag to indicate that we have received a window change signal which has   * Flag to indicate that we have received a window change signal which has
  * not yet been processed.  This will cause a message indicating the new   * not yet been processed.  This will cause a message indicating the new
Line 602 
Line 605 
                 atomicio(vwrite, fileno(stderr), buffer_ptr(berr),                  atomicio(vwrite, fileno(stderr), buffer_ptr(berr),
                     buffer_len(berr));                      buffer_len(berr));
   
         leave_raw_mode();          leave_raw_mode(force_tty_flag);
   
         /*          /*
          * Free (and clear) the buffer to reduce the amount of data that gets           * Free (and clear) the buffer to reduce the amount of data that gets
Line 623 
Line 626 
         buffer_init(bout);          buffer_init(bout);
         buffer_init(berr);          buffer_init(berr);
   
         enter_raw_mode();          enter_raw_mode(force_tty_flag);
 }  }
   
 static void  static void
Line 765 
Line 768 
         bzero(&fwd, sizeof(fwd));          bzero(&fwd, sizeof(fwd));
         fwd.listen_host = fwd.connect_host = NULL;          fwd.listen_host = fwd.connect_host = NULL;
   
         leave_raw_mode();          leave_raw_mode(force_tty_flag);
         handler = signal(SIGINT, SIG_IGN);          handler = signal(SIGINT, SIG_IGN);
         cmd = s = read_passphrase("\r\nssh> ", RP_ECHO);          cmd = s = read_passphrase("\r\nssh> ", RP_ECHO);
         if (s == NULL)          if (s == NULL)
Line 868 
Line 871 
   
 out:  out:
         signal(SIGINT, handler);          signal(SIGINT, handler);
         enter_raw_mode();          enter_raw_mode(force_tty_flag);
         if (cmd)          if (cmd)
                 xfree(cmd);                  xfree(cmd);
         if (fwd.listen_host != NULL)          if (fwd.listen_host != NULL)
Line 987 
Line 990 
                                  * more new connections).                                   * more new connections).
                                  */                                   */
                                 /* Restore tty modes. */                                  /* Restore tty modes. */
                                 leave_raw_mode();                                  leave_raw_mode(force_tty_flag);
   
                                 /* Stop listening for new connections. */                                  /* Stop listening for new connections. */
                                 channel_stop_listening();                                  channel_stop_listening();
Line 1279 
Line 1282 
 {  {
         channel_cancel_cleanup(id);          channel_cancel_cleanup(id);
         session_closed = 1;          session_closed = 1;
         leave_raw_mode();          leave_raw_mode(force_tty_flag);
 }  }
   
 /*  /*
Line 1352 
Line 1355 
         signal(SIGWINCH, window_change_handler);          signal(SIGWINCH, window_change_handler);
   
         if (have_pty)          if (have_pty)
                 enter_raw_mode();                  enter_raw_mode(force_tty_flag);
   
         if (compat20) {          if (compat20) {
                 session_ident = ssh2_chan_id;                  session_ident = ssh2_chan_id;
Line 1486 
Line 1489 
         channel_free_all();          channel_free_all();
   
         if (have_pty)          if (have_pty)
                 leave_raw_mode();                  leave_raw_mode(force_tty_flag);
   
         /* restore blocking io */          /* restore blocking io */
         if (!isatty(fileno(stdin)))          if (!isatty(fileno(stdin)))
Line 2044 
Line 2047 
 void  void
 cleanup_exit(int i)  cleanup_exit(int i)
 {  {
         leave_raw_mode();          leave_raw_mode(force_tty_flag);
         leave_non_blocking();          leave_non_blocking();
         if (options.control_path != NULL && muxserver_sock != -1)          if (options.control_path != NULL && muxserver_sock != -1)
                 unlink(options.control_path);                  unlink(options.control_path);

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216