Subject: weird libssh2_channel_get_exit_status behaviour

weird libssh2_channel_get_exit_status behaviour

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

libssh2_channel_get_exit_status documentation says that it returns 0 on

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?


Received on 2012-07-12