Merge pull request #5243 from oranagra/sigterm_log

Add log when server dies of SIGTERM during loading
This commit is contained in:
Salvatore Sanfilippo 2019-03-21 11:54:09 +01:00 committed by GitHub
commit 5c21eca66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4500,6 +4500,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);
}