Skip to content

Commit

Permalink
mxqd: reaper: ignore signals from mxqd
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 30, 2015
1 parent 78bec97 commit f23144e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit f23144e

Please sign in to comment.