Skip to content

Commit

Permalink
Merge pull request #72 from mariux64/restore-sigpipe
Browse files Browse the repository at this point in the history
Restore sigpipe
  • Loading branch information
pmenzel authored Mar 20, 2018
2 parents 5f99eef + 56c6fd2 commit 23530a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ static int init_child_process(struct mxq_group_list *glist, struct mxq_job *job)
group = &glist->group;

sigprocmask(SIG_UNBLOCK,&all_signals,NULL);
signal(SIGPIPE,SIG_DFL);

passwd = getpwuid(group->user_uid);
if (!passwd) {
Expand Down Expand Up @@ -2511,7 +2512,7 @@ int main(int argc, char *argv[])
killall_cancelled(server);
killall_over_time(server);
killall_over_memory(server);
mx_log_info("jobs_running=%lu global_sigint_cnt=%d global_sigterm_cnt=%d : Exiting. Wating for jobs to finish. Sleeping for a while.",
mx_log_info("jobs_running=%lu global_sigint_cnt=%d global_sigterm_cnt=%d : Exiting. Waiting for jobs to finish. Sleeping for a while.",
server->jobs_running,
global_sigint_cnt,
global_sigterm_cnt);
Expand Down

0 comments on commit 23530a8

Please sign in to comment.