Hi there, Just a small addition to the ssh_event_dopoll() annotations: It can also return SSH_AGAIN.
Cheers, Till
>From 860079f22f5f7ae38c28d6783af97c1d4289d2d8 Mon Sep 17 00:00:00 2001 From: Till Wimmer <[email protected]> Date: Mon, 25 Feb 2019 17:09:45 +0100 Subject: [PATCH] ssh_event_dopoll can also return SSH_AGAIN Signed-off-by: Till Wimmer <[email protected]> --- src/poll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/poll.c b/src/poll.c index 4123140..4620694 100644 --- a/src/poll.c +++ b/src/poll.c @@ -952,6 +952,7 @@ int ssh_event_add_connector(ssh_event event, ssh_connector connector){ * the poll() function. * @returns SSH_OK on success. * SSH_ERROR Error happened during the poll. + * SSH_AGAIN Timeout occured */ int ssh_event_dopoll(ssh_event event, int timeout) { int rc; -- 2.7.4
