mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
channels: Fix exit-signal request.
BUG: https://red.libssh.org/issues/153
This commit is contained in:
@@ -3523,9 +3523,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.
|
* Note, that remote system may not support signals concept.
|
||||||
* In such a case this request will be silently ignored.
|
* In such a case this request will be silently ignored.
|
||||||
* Only SSH-v2 is supported (I'm not sure about SSH-v1).
|
* Only SSH-v2 is supported (I'm not sure about SSH-v1).
|
||||||
@@ -3603,7 +3603,7 @@ int ssh_channel_request_send_exit_signal(ssh_channel channel, const char *sig,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = channel_request(channel, "signal", buffer, 0);
|
rc = channel_request(channel, "exit-signal", buffer, 0);
|
||||||
error:
|
error:
|
||||||
ssh_buffer_free(buffer);
|
ssh_buffer_free(buffer);
|
||||||
if(tmp)
|
if(tmp)
|
||||||
|
|||||||
Reference in New Issue
Block a user