[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.97 and 1.98

version 1.97, 2001/06/27 02:12:53 version 1.98, 2001/07/02 13:59:15
Line 1582 
Line 1582 
         session_close(s);          session_close(s);
 }  }
   
   int
   session_have_children(void)
   {
           int i;
   
           for(i = 0; i < MAX_SESSIONS; i++) {
                   Session *s = &sessions[i];
                   if (s->used && s->pid != -1) {
                           debug("session_have_children: id %d pid %d", i, s->pid);
                           return 1;
                   }
           }
           debug("session_have_children: no more children");
           return 0;
   }
   
 /*  /*
  * this is called when a channel dies before   * this is called when a channel dies before
  * the session 'child' itself dies   * the session 'child' itself dies

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98