From 5ada4b9491775b4cfc6acdfbf2dbab12121cc13b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 22 Mar 2013 11:34:22 +0100 Subject: [PATCH] clone.2: Add more detail on the meaning of CLONE_SYVSEM Signed-off-by: Michael Kerrisk --- man2/clone.2 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/man2/clone.2 b/man2/clone.2 index ceea50281..6e10fac6b 100644 --- a/man2/clone.2 +++ b/man2/clone.2 @@ -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