mirror of https://github.com/mkerrisk/man-pages
clone.2: Mention that CLONE_PARENT is off-limits for inits
The CLONE_PARENT flag cannot but used by init processes. Let's mention this in the manpages to prevent surprises. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a10c5a33de
commit
a17b9d28c3
|
@ -648,6 +648,13 @@ if
|
|||
.B CLONE_PARENT
|
||||
is set, then the parent of the calling process, rather than the
|
||||
calling process itself, will be signaled.
|
||||
.IP
|
||||
The kernel will not allow global init and init processes in pid
|
||||
namespaces to use the
|
||||
.B CLONE_PARENT
|
||||
flag. This is done to prevent the creation of multi-rooted process
|
||||
trees. It also avoids unreapable zombies in the initial pid
|
||||
namespace.
|
||||
.TP
|
||||
.BR CLONE_PARENT_SETTID " (since Linux 2.5.49)"
|
||||
Store the child thread ID at the location pointed to by
|
||||
|
|
Loading…
Reference in New Issue