diff options
| -rw-r--r-- | man2/prctl.2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man2/prctl.2 b/man2/prctl.2 index 633a0eb176..ed374e5862 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -184,6 +184,17 @@ and .BR clone (2). The setting is preserved across .BR execve (2). + +Establishing a subreaper process is useful in session management frameworks +where a hierarchical group of processes is managed by a subreaper process +that needs to be informed when one of the processes\(emfor example, +a double-forked daemon\(emterminates +(perhaps so that it can restart that process). +Some +.BR init (1) +frameworks (e.g., +.BR systemd (1)) +employ a subreaper process for similar reasons. .TP .BR PR_GET_CHILD_SUBREAPER " (since Linux 3.4)" Return the "child subreaper" setting of the caller, |
