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
077a1965
Commit
077a1965
authored
Nov 30, 2015
by
antirez
Browse files
Better SIGCHLD handling for #2897 debugging.
parent
4f7d1e46
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bio.c
View file @
077a1965
...
...
@@ -152,6 +152,7 @@ void *bioProcessBackgroundJobs(void *arg) {
* receive the watchdog signal. */
sigemptyset
(
&
sigset
);
sigaddset
(
&
sigset
,
SIGALRM
);
sigaddset
(
&
sigset
,
SIGCHLD
);
if
(
pthread_sigmask
(
SIG_BLOCK
,
&
sigset
,
NULL
))
redisLog
(
REDIS_WARNING
,
"Warning: can't mask SIGALRM in bio.c thread: %s"
,
strerror
(
errno
));
...
...
src/redis.c
View file @
077a1965
...
...
@@ -1761,7 +1761,8 @@ void initServer(void) {
int
j
;
signal
(
SIGHUP
,
SIG_IGN
);
signal
(
SIGPIPE
,
SIG_IGN
);
signal
(
SIGPIPE
,
SIG_IGN
);
/* No write(2) generated signals. */
signal
(
SIGCHLD
,
SIG_DFL
);
/* We want zombies to queue for waitpid(). */
setupSignalHandlers
();
if
(
server
.
syslog_enabled
)
{
...
...
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