www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Fwd: [PATCH] * Set session to blocking on shutdown

Fwd: [PATCH] * Set session to blocking on shutdown

From: Paulo Caetano <paulo.a.o.caetano_at_gmail.com>
Date: Wed, 30 May 2012 16:23:19 +0100

---
 example/ssh2_exec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/example/ssh2_exec.c b/example/ssh2_exec.c
index e5b151d..b59db8d 100644
--- a/example/ssh2_exec.c
+++ b/example/ssh2_exec.c
@@ -300,7 +300,7 @@ int main(int argc, char *argv[])
    channel = NULL;
 shutdown:
-
+       libssh2_session_set_blocking(session, 1);
    libssh2_session_disconnect(session,
                               "Normal Shutdown, Thank you for playing");
    libssh2_session_free(session);
--
1.7.10
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-30

the libssh2 team