clone.2: Add more detail on the meaning of CLONE_SYVSEM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-03-22 11:34:22 +01:00
parent 0d829b7610
commit 5ada4b9491
1 changed files with 12 additions and 3 deletions

View File

@ -594,10 +594,19 @@ altogether in Linux 2.6.38.
If
.B CLONE_SYSVSEM
is set, then the child and the calling process share
a single list of System\ V semaphore undo values (see
a single list of System V semaphore adjustment
.RI ( semadj )
values (see
.BR semop (2)).
If this flag is not set, then the child has a separate undo list,
which is initially empty.
In this case, the shared list accumulates
.I semadj
values across all processes sharing the list,
and semaphore adjustments are performed only when the last process
that is sharing the list terminates (or ceases sharing the list using
.BR unshare (2)).
If this flag is not set, then the child has a separate
.I semadj
list that is initially empty.
.TP
.BR CLONE_THREAD " (since Linux 2.4.0-test8)"
If