Subject: weird libssh2_channel_get_exit_status behaviour

weird libssh2_channel_get_exit_status behaviour

From: aalok sood <aalok_at_ideadevice.com>
Date: Thu, 12 Jul 2012 21:42:59 +0530

libssh2_channel_get_exit_status documentation says that it returns 0 on
error

How do I distinguish between and an Error and a exit_status of 0

If I kill the remote process, I get exit_status as 0
if the command terminates successfully (it exits with exitstatus 0), I get
exit_status as 0

I am not sure how I can handle the case where in the remote process running
the command got killed?

Regards
Aalok

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-07-12