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:
Oran Agra
2019-05-13 16:33:34 +02:00
committed by antirez
parent 232dca7fbc
commit 78022492d5
+1
View File
@@ -3803,6 +3803,7 @@ static void sigShutdownHandler(int sig) {
rdbRemoveTempFile(getpid());
exit(1); /* Exit with an error since this was not a clean shutdown. */
} else if (server.loading) {
serverLogFromHandler(LL_WARNING, "Received shutdown signal during loading, exiting now.");
exit(0);
}