version 1.433, 2023/09/04 00:01:46 |
version 1.434, 2023/11/15 22:51:49 |
|
|
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) |