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 Sep 18, 2022
1 parent dce9818 commit 169ed04
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 @@ -167,6 +167,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 169ed04

Please sign in to comment.