From f23144ea74a984e81fed169191d8fbd8fdb830d8 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 30 Oct 2015 11:57:12 +0100 Subject: [PATCH] mxqd: reaper: ignore signals from mxqd --- mxqd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mxqd.c b/mxqd.c index 276dc68..6ebc9c7 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1251,6 +1251,11 @@ int reaper_process(struct mxq_server *server,struct mxq_group_list *group,struc reset_signals(); + signal(SIGINT, SIG_IGN); + signal(SIGTERM, SIG_IGN); + signal(SIGHUP, SIG_IGN); + signal(SIGXCPU, SIG_IGN); + res = setsid(); if (res<0) { mx_log_warning("reaper_process setsid: %m");