mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-24 00:59:02 -05:00
Add log when server dies of SIGTERM during loading
this is very confusing to see the server disappears as if it got SIGKILL when it was not the case.
This commit is contained in:
parent
39c70e728b
commit
17c5f17686
@ -3780,6 +3780,7 @@ static void sigShutdownHandler(int sig) {
|
|||||||
rdbRemoveTempFile(getpid());
|
rdbRemoveTempFile(getpid());
|
||||||
exit(1); /* Exit with an error since this was not a clean shutdown. */
|
exit(1); /* Exit with an error since this was not a clean shutdown. */
|
||||||
} else if (server.loading) {
|
} else if (server.loading) {
|
||||||
|
serverLogFromHandler(LL_WARNING, "Received shutdown signal during loading, exiting now.");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user