MXS-1045: Delete default SIGCHLD handler

If the default signal handler is not deleted for the original parent
process, the forked daemon process never receives the signals.
This commit is contained in:
Markus Makela 2016-12-05 14:25:18 +02:00
parent 943aa48fb5
commit 21098e0a26

View File

@ -1037,6 +1037,11 @@ bool disable_signals(void)
return false;
}
if (!delete_signal(&sigset, SIGCHLD, "SIGCHLD"))
{
return false;
}
#ifdef SIGBUS
if (!delete_signal(&sigset, SIGBUS, "SIGBUS"))
{