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

Diff for /src/usr.bin/ssh/session.c between version 1.288 and 1.289

version 1.288, 2017/05/31 09:15:42 version 1.289, 2017/06/24 05:24:11
Line 118 
Line 118 
 /* import */  /* import */
 extern ServerOptions options;  extern ServerOptions options;
 extern char *__progname;  extern char *__progname;
 extern int log_stderr;  
 extern int debug_flag;  extern int debug_flag;
 extern u_int utmp_len;  extern u_int utmp_len;
 extern int startup_pipe;  extern int startup_pipe;
Line 345 
Line 344 
         case 0:          case 0:
                 is_child = 1;                  is_child = 1;
   
                 /* Child.  Reinitialize the log since the pid has changed. */  
                 log_init(__progname, options.log_level,  
                     options.log_facility, log_stderr);  
   
                 /*                  /*
                  * Create a new session and process group since the 4.4BSD                   * Create a new session and process group since the 4.4BSD
                  * setlogin() affects the entire process group.                   * setlogin() affects the entire process group.
Line 484 
Line 479 
                 close(fdout);                  close(fdout);
                 close(ptymaster);                  close(ptymaster);
   
                 /* Child.  Reinitialize the log because the pid has changed. */  
                 log_init(__progname, options.log_level,  
                     options.log_facility, log_stderr);  
                 /* Close the master side of the pseudo tty. */                  /* Close the master side of the pseudo tty. */
                 close(ptyfd);                  close(ptyfd);
   

Legend:
Removed from v.1.288  
changed lines
  Added in v.1.289