Skip to content

Commit

Permalink
mxqd: Don't restore signals in exec_reaper
Browse files Browse the repository at this point in the history
We don't need to restore signal sets to their default disposition,
because exec() will do that for us.
  • Loading branch information
donald committed Apr 20, 2022
1 parent 23cfdfd commit 95916d1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 95916d1

Please sign in to comment.