Skip to content

Commit

Permalink
add exit status method
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn authored and webknjaz committed Jan 18, 2024
1 parent 18ecd28 commit ccda11c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pylibsshext/channel.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ cdef class Channel:

return result

def get_channel_exit_status(self):
return libssh.ssh_channel_get_exit_status(self._libssh_channel)

def close(self):
if self._libssh_channel is not NULL:
if not libssh.ssh_channel_is_closed(self._libssh_channel):
Expand Down

0 comments on commit ccda11c

Please sign in to comment.