aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-02-04 19:18:06 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2009-02-04 19:18:06 +0000
commit22b422995f4e2b569565992a5feef7de08597e54 (patch)
tree1b820ea4a09360b0174eb86c86024fb8988469f5 /sample.c
parentac3d66ac69278906bb09c4c751c6b9827d7ca17a (diff)
downloadlibssh-22b422995f4e2b569565992a5feef7de08597e54.tar.gz
libssh-22b422995f4e2b569565992a5feef7de08597e54.tar.xz
libssh-22b422995f4e2b569565992a5feef7de08597e54.zip
adding error status in samplessh
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@229 7dcaeef0-15fb-0310-b436-a5af3365683c
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;