man-pages: pthread_sigmask comment / code inconsistency

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

 



This is found on both my installed 3.27 and the html 3.32 release
http://kernel.org/doc/man-pages/online/pages/man3/pthread_sigmask.3.html

In the sample code, the comment indicates blocking SIGINT, while the code
appears to be blocking SIGQUIT and SIGURS1.  This is confusing.  I believe
removing the words "Block SIGINT; " would clarify the example.

Sorry for not sending a patch, the git repo seems to still be down.
(from here: git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git)

Please CC on any replies, I am not on these mailing lists.

-pat

relevant bits:

 /* Block SIGINT; other threads created by main() will inherit
              a copy of the signal mask. */

           sigemptyset(&set);
           sigaddset(&set, SIGQUIT);
           sigaddset(&set, SIGUSR1);
           s = pthread_sigmask(SIG_BLOCK, &set, NULL);

--
Pat Pannuto
Computer Engineering
University of Michigan
248.990.4548
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux