1libssh2_channel_get_exit_signal(3l)ibssh2 manuallibssh2_channel_get_exit_signal(3)
2
3
4
6 libssh2_channel_get_exit_signal - get the remote exit signal
7
9 #include <libssh2.h>
10
11 int libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL *channel, char
12 **exitsignal, size_t *exitsignal_len, char **errmsg, size_t
13 *errmsg_len, char **langtag, size_t *langtag_len);
14
15
17 channel - Closed channel stream to retrieve exit signal from.
18
19 exitsignal - If not NULL, is populated by reference with the exit sig‐
20 nal (without leading "SIG"). Note that the string is stored in a newly
21 allocated buffer. If the remote program exited cleanly, the referenced
22 string pointer will be set to NULL.
23
24 exitsignal_len - If not NULL, is populated by reference with the length
25 of exitsignal.
26
27 errmsg - If not NULL, is populated by reference with the error message
28 (if provided by remote server, if not it will be set to NULL). Note
29 that the string is stored in a newly allocated buffer.
30
31 errmsg_len - If not NULL, is populated by reference with the length of
32 errmsg.
33
34 langtag - If not NULL, is populated by reference with the language tag
35 (if provided by remote server, if not it will be set to NULL). Note
36 that the string is stored in a newly allocated buffer.
37
38 langtag_len - If not NULL, is populated by reference with the length of
39 langtag.
40
41
43 Numeric error code corresponding to the the Error Code constants.
44
45
46
47libssh2 1.2.8 4 Oct 2010libssh2_channel_get_exit_signal(3)