carta
libssh2_channel_get_exit_signal(3)

libssh2_channel_get_exit_signal3

Get the remote exit signal

Usage

int

char **exitsignal, size_t *exitsignal_len,

char **errmsg, size_t *errmsg_len,

char **langtag, size_t *langtag_len);

Overview

channel - Closed channel stream to retrieve exit signal from.

exitsignal - If not NULL, is populated by reference with the exit signal (without leading "SIG"). Note that the string is stored in a newly allocated buffer. If the remote program exited cleanly, the referenced string pointer will be set to NULL.

exitsignal_len - If not NULL, is populated by reference with the length of exitsignal.

errmsg - If not NULL, is populated by reference with the error message (if provided by remote server, if not it will be set to NULL). Note that the string is stored in a newly allocated buffer.

errmsg_len - If not NULL, is populated by reference with the length of errmsg.

langtag - If not NULL, is populated by reference with the language tag (if provided by remote server, if not it will be set to NULL). Note that the string is stored in a newly allocated buffer.

langtag_len - If not NULL, is populated by reference with the length of langtag.

Return value

Numeric error code corresponding to the the Error Code constants.

History

  • Arch Linux 2026-11-01 to Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm) to Debian 7 (Wheezy)

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.