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

Diff for /src/usr.bin/ssh/channels.c between version 1.433 and 1.434

version 1.433, 2023/09/04 00:01:46 version 1.434, 2023/11/15 22:51:49
Line 886 
Line 886 
         return 0;          return 0;
 }  }
   
   /* Returns true if a channel with a TTY is open. */
   int
   channel_tty_open(struct ssh *ssh)
   {
           u_int i;
           Channel *c;
   
           for (i = 0; i < ssh->chanctxt->channels_alloc; i++) {
                   c = ssh->chanctxt->channels[i];
                   if (c == NULL || c->type != SSH_CHANNEL_OPEN)
                           continue;
                   if (c->client_tty)
                           return 1;
           }
           return 0;
   }
   
 /* Returns the id of an open channel suitable for keepaliving */  /* Returns the id of an open channel suitable for keepaliving */
 int  int
 channel_find_open(struct ssh *ssh)  channel_find_open(struct ssh *ssh)

Legend:
Removed from v.1.433  
changed lines
  Added in v.1.434