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

Diff for /src/usr.bin/ssh/monitor.c between version 1.172 and 1.173

version 1.172, 2017/06/24 06:34:38 version 1.173, 2017/09/12 06:32:07
Line 1228 
Line 1228 
 int  int
 mm_answer_term(int sock, Buffer *req)  mm_answer_term(int sock, Buffer *req)
 {  {
           struct ssh *ssh = active_state; /* XXX */
         extern struct monitor *pmonitor;          extern struct monitor *pmonitor;
         int res, status;          int res, status;
   
         debug3("%s: tearing down sessions", __func__);          debug3("%s: tearing down sessions", __func__);
   
         /* The child is terminating */          /* The child is terminating */
         session_destroy_all(&mm_session_close);          session_destroy_all(ssh, &mm_session_close);
   
         while (waitpid(pmonitor->m_pid, &status, 0) == -1)          while (waitpid(pmonitor->m_pid, &status, 0) == -1)
                 if (errno != EINTR)                  if (errno != EINTR)

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173