From 88f5ae3b3918af9ccccc3cc65660dd7b4ecd0822 Mon Sep 17 00:00:00 2001 From: ngxson Date: Tue, 27 Feb 2024 21:23:39 +0100 Subject: [PATCH] sigint: stderr --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index ae93fda2c..73ef05716 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -2777,7 +2777,7 @@ inline void signal_handler(int signal) { if (is_terminating.test_and_set()) { // in case it hangs, we can force terminate the server by hitting Ctrl+C twice // this is for better developer experience, we can remove when the server is stable enough - printf("SIGINT is received second time, exit immediately...\n"); + fprintf(stderr, "SIGINT is received second time, exit immediately...\n"); exit(1); } shutdown_handler(signal);