From c18538b001d741797bbdd647c1062e8ecd999320 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 18 Dec 2024 15:19:30 +1300 Subject: [PATCH] examples: close with Ctrl+C instead of SIGUSR1 --- examples/start_stop_server/start_stop_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/start_stop_server/start_stop_server.cpp b/examples/start_stop_server/start_stop_server.cpp index 6bad0bfa2..ff7286a67 100644 --- a/examples/start_stop_server/start_stop_server.cpp +++ b/examples/start_stop_server/start_stop_server.cpp @@ -13,7 +13,7 @@ static struct MavsdkServer* mavsdk_server; void signal_handler(int sig) { - std::cout << "Received SIGUSR1 signal" << std::endl; + std::cout << "Received signal " << sig << std::endl; mavsdk_server_stop(mavsdk_server); } @@ -25,7 +25,7 @@ int main(int argc, char* argv[]) return 1; } - signal(SIGUSR1, signal_handler); + signal(SIGINT, signal_handler); mavsdk_server_init(&mavsdk_server); mavsdk_server_run(mavsdk_server, argv[1], 50051);