Update a comment.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jun 2008 19:07:54 +0000 (21:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jun 2008 19:07:54 +0000 (21:07 +0200)
ChangeLog
lib/sigprocmask.c

index dcb8f5e..c9d6fa1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-22  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sigprocmask.c: Update a comment.
+
 2008-06-21  Eric Blake  <ebb9@byu.net>
 
        Use sigaction module rather than signal().
index a8f2eb4..54e9c68 100644 (file)
@@ -188,7 +188,8 @@ sigprocmask (int operation, const sigset_t *set, sigset_t *old_set)
              {
                if (signal (sig, old_handlers[sig]) != blocked_handler)
                  /* The application changed a signal handler while the signal
-                    was blocked.  We don't support this.  */
+                    was blocked, bypassing our rpl_signal replacement.
+                    We don't support this.  */
                  abort ();
                received[sig] = pending_array[sig];
                blocked_set &= ~(1U << sig);
@@ -230,7 +231,8 @@ rpl_signal (int sig, sa_handler_t handler)
          old_handlers[sig] = handler;
          return result;
        }
-      return signal (sig, handler);
+      else
+       return signal (sig, handler);
     }
   else
     {