aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-04-09 14:52:14 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-04-22 09:09:56 +0200
commit9b59f1a222e402a1127aeadb3f0607754321d785 (patch)
tree4f58fe87f76d59b548aa8c4e82ea7d66d24e5adb
parent8f21f879d3ea6e79c10c6f61b3ccf1954295b5e5 (diff)
downloadlibssh-9b59f1a222e402a1127aeadb3f0607754321d785.tar.gz
libssh-9b59f1a222e402a1127aeadb3f0607754321d785.tar.xz
libssh-9b59f1a222e402a1127aeadb3f0607754321d785.zip
channels: Fix exit-signal request.
BUG: https://red.libssh.org/issues/153 (cherry picked from commit 927cd90dc171b7e7a400ab8c1c9474f627e89167)
-rw-r--r--src/channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.c b/src/channels.c
index 85a3ebcb..eca1a37b 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -3462,9 +3462,9 @@ error:
}
/**
- * @brief Send an exit signal to remote process (as described in RFC 4254, section 6.10).
+ * @brief Send an exit signal to remote process (RFC 4254, section 6.10).
*
- * Sends a signal 'sig' to the remote process.
+ * This sends the exit status of the remote process.
* Note, that remote system may not support signals concept.
* In such a case this request will be silently ignored.
* Only SSH-v2 is supported (I'm not sure about SSH-v1).
@@ -3542,7 +3542,7 @@ int ssh_channel_request_send_exit_signal(ssh_channel channel, const char *sig,
goto error;
}
- rc = channel_request(channel, "signal", buffer, 0);
+ rc = channel_request(channel, "exit-signal", buffer, 0);
error:
ssh_buffer_free(buffer);
if(tmp)