Skip to content

Commit

Permalink
added a kill command in pxh console to kill the whole process includi…
Browse files Browse the repository at this point in the history
…ng gz server
  • Loading branch information
rajeev-gupta-bashrc committed Nov 1, 2024
1 parent 598e921 commit 860896b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platforms/posix/src/px4/common/px4_daemon/pxh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ int Pxh::process_line(const std::string &line, bool silently_fail)
// Do nothing
return 0;

} else {
} else if (!silently_fail) {
//std::cout << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl;
printf("Invalid command: %s\ntype 'help' for a list of commands\n", command.c_str());
return -1;

} else {
return -1;
}
}

Expand Down

0 comments on commit 860896b

Please sign in to comment.