diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-02-04 19:18:06 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-02-04 19:18:06 +0000 |
commit | 22b422995f4e2b569565992a5feef7de08597e54 (patch) | |
tree | 1b820ea4a09360b0174eb86c86024fb8988469f5 /sample.c | |
parent | ac3d66ac69278906bb09c4c751c6b9827d7ca17a (diff) | |
download | libssh-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |