Update examples/server/server.cpp

Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
Xuan Son Nguyen 2024-02-28 00:25:49 +01:00 committed by GitHub
parent 88f5ae3b39
commit 0fcd27dc12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2777,7 +2777,7 @@ inline void signal_handler(int signal) {
if (is_terminating.test_and_set()) { if (is_terminating.test_and_set()) {
// in case it hangs, we can force terminate the server by hitting Ctrl+C twice // 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 // this is for better developer experience, we can remove when the server is stable enough
fprintf(stderr, "SIGINT is received second time, exit immediately...\n"); fprintf(stderr, "Received second interrupt, terminating immediately.\n");
exit(1); exit(1);
} }
shutdown_handler(signal); shutdown_handler(signal);