From 95916d10cc5a9b3c1c25f8c283d7485078e679b5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 20 Apr 2022 22:04:35 +0200 Subject: [PATCH] mxqd: Don't restore signals in exec_reaper We don't need to restore signal sets to their default disposition, because exec() will do that for us. --- mxqd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mxqd.c b/mxqd.c index 11a48fee..d24d6c3c 100644 --- a/mxqd.c +++ b/mxqd.c @@ -935,9 +935,6 @@ static void exec_reaper(struct mxq_server *server,struct mxq_group_list *glist, return; } - sigprocmask(SIG_UNBLOCK,&all_signals,NULL); - signal(SIGPIPE,SIG_DFL); - struct passwd *passwd = getpwuid(group->user_uid); if (!passwd) { mx_log_err("job=%s(%d):%lu:%lu getpwuid(): %m",