mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 18:29:50 +09:00
channels: Use a structure to store exit information
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -80,7 +80,12 @@ struct ssh_channel_struct {
|
||||
ssh_buffer stdout_buffer;
|
||||
ssh_buffer stderr_buffer;
|
||||
void *userarg;
|
||||
uint32_t exit_status;
|
||||
struct {
|
||||
bool status;
|
||||
uint32_t code;
|
||||
char *signal;
|
||||
bool core_dumped;
|
||||
} exit;
|
||||
enum ssh_channel_request_state_e request_state;
|
||||
struct ssh_list *callbacks; /* list of ssh_channel_callbacks */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user