Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
454eea7c
Commit
454eea7c
authored
Apr 07, 2010
by
antirez
Browse files
Now when a child is terminated by a signal, the signal number is logged as well
parent
686bc0ac
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
454eea7c
...
@@ -1223,7 +1223,7 @@ void backgroundSaveDoneHandler(int statloc) {
...
@@ -1223,7 +1223,7 @@ void backgroundSaveDoneHandler(int statloc) {
redisLog
(
REDIS_WARNING
,
"Background saving error"
);
redisLog
(
REDIS_WARNING
,
"Background saving error"
);
}
else
{
}
else
{
redisLog
(
REDIS_WARNING
,
redisLog
(
REDIS_WARNING
,
"Background saving terminated by signal
"
);
"Background saving terminated by signal
%d"
,
WTERMSIG
(
statloc
)
);
rdbRemoveTempFile
(
server
.
bgsavechildpid
);
rdbRemoveTempFile
(
server
.
bgsavechildpid
);
}
}
server
.
bgsavechildpid
=
-
1
;
server
.
bgsavechildpid
=
-
1
;
...
@@ -1284,7 +1284,8 @@ void backgroundRewriteDoneHandler(int statloc) {
...
@@ -1284,7 +1284,8 @@ void backgroundRewriteDoneHandler(int statloc) {
redisLog
(
REDIS_WARNING
,
"Background append only file rewriting error"
);
redisLog
(
REDIS_WARNING
,
"Background append only file rewriting error"
);
}
else
{
}
else
{
redisLog
(
REDIS_WARNING
,
redisLog
(
REDIS_WARNING
,
"Background append only file rewriting terminated by signal"
);
"Background append only file rewriting terminated by signal %d"
,
WTERMSIG
(
statloc
));
}
}
cleanup:
cleanup:
sdsfree
(
server
.
bgrewritebuf
);
sdsfree
(
server
.
bgrewritebuf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment