From e9242a7a31110f1f4c25bd8d0d7cf17953fef992 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 16 Sep 2013 08:40:56 +0200 Subject: channel: Document SSH_AGAIN in ssh_channel_read(). BUG: https://red.libssh.org/issues/115 --- src/channels.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/channels.c b/src/channels.c index f4376e83..94611257 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2640,8 +2640,8 @@ static int ssh_channel_read_termination(void *s){ * @param[in] is_stderr A boolean value to mark reading from the stderr flow. * * @return The number of bytes read, 0 on end of file or SSH_ERROR - * on error. Can return 0 if nothing is available in nonblocking - * mode. + * on error. In nonblocking mode it Can return 0 if no data + * is available or SSH_AGAIN. * * @warning This function may return less than count bytes of data, and won't * block until count bytes have been read. -- cgit v1.2.3