Ticket #60 (closed defect)
libssh2_channel_get_exit_status should not fail with 0
|Reported by:||roadrunn||Owned by:|
When using libssh2_channel_get_exit_status to check the return code of an exec'ed process it returns 0 on failure. The problem is most applications and scripts will return 0 on success. I think tht if libssh2_channel_get_exit_status has a failure it should return -1, or some other value that wouldn't be confused with the exec'ed process' return code. I think if we at least stay away from 0 and 1 that would be a good start.