summaryrefslogtreecommitdiffstats
path: root/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample.c b/sample.c
index ffad50ba..a027e7ed 100644
--- a/sample.c
+++ b/sample.c
@@ -168,6 +168,8 @@ void select_loop(SSH_SESSION *session,CHANNEL *channel){
// we already looked for input from stdin. Now, we are looking for input from the channel
if(channel && channel_is_closed(channel)){
+ ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",channel_get_exit_status(channel));
+
channel_free(channel);
channel=NULL;
channels[0]=NULL;