Note what thread is affected if 'pid' is specified

as 0, or as the value returned by getpid().
This commit is contained in:
Michael Kerrisk 2007-07-21 06:59:36 +00:00
parent 20c58d7028
commit da49ae1814
1 changed files with 6 additions and 0 deletions

View File

@ -185,6 +185,12 @@ The value returned from a call to
.BR gettid (2)
can be passed in the argument
.IR pid .
Specifying
.I pid
as 0 will set the attribute for the current thread,
and passing the value returned from a call to
.BR getpid (2)
will set the attribute for the main thread of the thread group.
A child created via
.BR fork (2)