]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix incorrect assertion
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 2 Nov 2014 17:02:32 +0000 (18:02 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 2 Nov 2014 17:02:32 +0000 (18:02 +0100)
* process.c (catch_child_signal): Fix incorrect assertion.

src/ChangeLog
src/process.c

index e79bcb7080aec014135ed07a53b47ae29da1bdb4..62656d06354bff6b3a3f5b1da0ae3cfc73b6a165 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-02  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (catch_child_signal): Fix incorrect assertion.
+
 2014-11-01  Jan Djärv  <jan.h.d@swipnet.se>
 
        * macfont.m (macfont_draw):
index 06fc918cf54c1dd946b79526c7c90a7ad3fc7699..6eae5166465e824ffcb38f24e8aa60648ae164b7 100644 (file)
@@ -7092,7 +7092,8 @@ catch_child_signal (void)
   emacs_sigaction_init (&action, deliver_child_signal);
   block_child_signal (&oldset);
   sigaction (SIGCHLD, &action, &old_action);
-  eassert (! (old_action.sa_flags & SA_SIGINFO));
+  eassert (old_action.sa_handler == SIG_DFL || old_action.sa_handler == SIG_IGN
+          || ! (old_action.sa_flags & SA_SIGINFO));
 
   if (old_action.sa_handler != deliver_child_signal)
     lib_child_handler