sigint: stderr
This commit is contained in:
parent
ac699991a8
commit
88f5ae3b39
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue