From f14aa01bb8c45f6216f4a114ceb2fa99a9c6c4ff Mon Sep 17 00:00:00 2001 From: James Housley Date: Sun, 22 Apr 2007 11:00:02 +0000 Subject: [PATCH] Add comment about setting non-blocking --- example/simple/sftpdir_nonblock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/simple/sftpdir_nonblock.c b/example/simple/sftpdir_nonblock.c index 4804df42..334a0843 100644 --- a/example/simple/sftpdir_nonblock.c +++ b/example/simple/sftpdir_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftpdir_nonblock.c,v 1.1 2007/04/21 18:08:00 jehousley Exp $ + * $Id: sftpdir_nonblock.c,v 1.2 2007/04/22 11:00:02 jehousley Exp $ * * Sample doing an SFTP directory listing. * @@ -139,6 +139,7 @@ int main(int argc, char *argv[]) goto shutdown; } + /* Since we have set non-blocking, tell libssh2 we are non-blocking */ libssh2_sftp_set_blocking(sftp_session, 0); fprintf(stderr, "libssh2_sftp_opendir()!\n");