Skip to content

Commit ccda11c

Browse files
ganeshrnwebknjaz
authored andcommitted
add exit status method
1 parent 18ecd28 commit ccda11c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pylibsshext/channel.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ cdef class Channel:
165165

166166
return result
167167

168+
def get_channel_exit_status(self):
169+
return libssh.ssh_channel_get_exit_status(self._libssh_channel)
170+
168171
def close(self):
169172
if self._libssh_channel is not NULL:
170173
if not libssh.ssh_channel_is_closed(self._libssh_channel):

0 commit comments

Comments
 (0)