mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 02:22:13 +00:00
Better SIGCHLD handling for #2897 debugging.
This commit is contained in:
parent
4f7d1e46cf
commit
077a196501
@ -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));
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user