[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.214 and 1.215

version 1.214, 2009/10/24 11:15:29 version 1.215, 2009/11/17 05:31:44
Line 1838 
Line 1838 
                 chan_rcvd_eow(c);                  chan_rcvd_eow(c);
         } else if (strcmp(rtype, "exit-status") == 0) {          } else if (strcmp(rtype, "exit-status") == 0) {
                 exitval = packet_get_int();                  exitval = packet_get_int();
                 if (id == session_ident) {                  if (c->ctl_fd != -1) {
                           /* Dispatch to mux client */
                           atomicio(vwrite, c->ctl_fd, &exitval, sizeof(exitval));
                         success = 1;                          success = 1;
                   } else if (id == session_ident) {
                           /* Record exit value of local session */
                           success = 1;
                         exit_status = exitval;                          exit_status = exitval;
                 } else if (c->ctl_fd == -1) {                  } else {
                         error("client_input_channel_req: unexpected channel %d",                          error("client_input_channel_req: unexpected channel %d",
                             session_ident);                              session_ident);
                 } else {  
                         atomicio(vwrite, c->ctl_fd, &exitval, sizeof(exitval));  
                         success = 1;  
                 }                  }
                 packet_check_eom();                  packet_check_eom();
         }          }

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