Merge pull request #9622 from Icinga/9563

Main process: ignore SIGHUP
This commit is contained in:
Julian Brost 2023-02-02 11:36:13 +01:00 committed by GitHub
commit 3eb85797ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -499,6 +499,14 @@ static pid_t StartUnixWorker(const std::vector<std::string>& configs, bool close
sa.sa_handler = SIG_DFL;
(void)sigaction(SIGUSR1, &sa, nullptr);
}
{
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = SIG_IGN;
(void)sigaction(SIGHUP, &sa, nullptr);
}