Skip to content

Commit

Permalink
capture exitCode from ssh_channel_get_exit_status
Browse files Browse the repository at this point in the history
  • Loading branch information
chauser committed Dec 12, 2024
1 parent cc41a0e commit a3949a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::string SshSession::ExecuteResult(std::string_view cmd, int* exitStatus) {
#if LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 11
ssh_channel_get_exit_state(channel, &exitCode, nullptr, nullptr);
#else
ssh_channel_get_exit_status(channel);
exitCode = ssh_channel_get_exit_status(channel);
#endif
INFO("{} {}", exitCode, cmd);

Expand Down

0 comments on commit a3949a4

Please sign in to comment.