pthread_sigmask.3: Fix comment that was inconsistent with code in example program

Reported-by: Pat Pannuto <pat.pannuto@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2011-10-16 07:13:19 +02:00
parent 45b4eda6e8
commit 4a905b9294
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by .\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work. .\" the source, must acknowledge the copyright and authors of this work.
.\" .\"
.TH PTHREAD_SIGMASK 3 2009-01-25 "Linux" "Linux Programmer's Manual" .TH PTHREAD_SIGMASK 3 2011-10-16 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
pthread_sigmask \- examine and change mask of blocked signals pthread_sigmask \- examine and change mask of blocked signals
.SH SYNOPSIS .SH SYNOPSIS
@ -110,8 +110,8 @@ main(int argc, char *argv[])
sigset_t set; sigset_t set;
int s; int s;
/* Block SIGINT; other threads created by main() will inherit /* Block SIGQUIT and SIGUSR1; other threads created by main()
a copy of the signal mask. */ will inherit a copy of the signal mask. */
sigemptyset(&set); sigemptyset(&set);
sigaddset(&set, SIGQUIT); sigaddset(&set, SIGQUIT);