bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #51400] SIGCHLD gets unblocked


From: Koen Van Hoof
Subject: [bug #51400] SIGCHLD gets unblocked
Date: Thu, 6 Jul 2017 05:29:50 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]