URL: <http://savannah.gnu.org/bugs/?51400>
Summary: SIGCHLD gets unblocked Project: make Submitted by: kvho Submitted on: Thu 06 Jul 2017 11:29:48 AM CEST Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.2.1 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: in main.c SIGCHLD is blocked. in unblock_sigs in job.c, the signal is unblocked again. solution: diff --git a/src/job.c b/src/job.c --- a/src/job.c +++ b/src/job.c @@ -1051,9 +1051,7 @@ block_sigs (void) void unblock_sigs (void) { - sigset_t empty; - sigemptyset (&empty); - sigprocmask (SIG_SETMASK, &empty, (sigset_t *) 0); + (void) sigprocmask (SIG_UNBLOCK, &fatal_signal_set, (sigset_t *) 0); } #endif _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51400> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make