Add a comment.
authorBruno Haible <bruno@clisp.org>
Thu, 19 Jun 2008 01:34:29 +0000 (03:34 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 19 Jun 2008 01:34:29 +0000 (03:34 +0200)
ChangeLog
lib/fatal-signal.c

index 30d8235..6fd6362 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fatal-signal.c (init_fatal_signals): Add comment.
+       Reported by Eric Blake.
+
 2008-06-18  Eric Blake  <ebb9@byu.net>
 
        Work around cygwin 1.5.25 strsignal bug.
index a599f3a..7654d1f 100644 (file)
@@ -96,6 +96,10 @@ init_fatal_signals (void)
          struct sigaction action;
 
          if (sigaction (fatal_signals[i], NULL, &action) >= 0
+             /* POSIX says that SIG_IGN can only occur when action.sa_flags
+                does not contain SA_SIGINFO.  But in Linux 2.4, for example,
+                SA_SIGINFO can actually be set and is ignored when sa_handler
+                is SIG_IGN.  So don't bother testing for SA_SIGINFO.  */
              && action.sa_handler == SIG_IGN)
            fatal_signals[i] = -1;
        }