From 63e09908f12f36715797f2d093749050c18998f4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 23 May 2022 11:11:18 +0200 Subject: [PATCH] poll: Document errno will be set for ssh_event_dopoll() Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/poll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/poll.c b/src/poll.c index 19147698..1246f456 100644 --- a/src/poll.c +++ b/src/poll.c @@ -979,7 +979,8 @@ int ssh_event_add_connector(ssh_event event, ssh_connector connector) * means an infinite timeout. This parameter is passed to * the poll() function. * @returns SSH_OK on success. - * SSH_ERROR Error happened during the poll. + * SSH_ERROR Error happened during the poll. Check errno to get more + * details about why it failed. * SSH_AGAIN Timeout occured */ int ssh_event_dopoll(ssh_event event, int timeout)