aboutsummaryrefslogtreecommitdiff
path: root/proc/proc.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2024-02-16 13:26:29 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-02-17 02:24:23 +0100
commitd0e63556c4fd10cf3627b6e5c292a1f178a5578f (patch)
tree7a4098d700723156ec9c7bde1085b0213fa90192 /proc/proc.h
parent786fc07a9f990224db98f40ca819c81ab4e59966 (diff)
downloadhurd-d0e63556c4fd10cf3627b6e5c292a1f178a5578f.tar.gz
hurd-d0e63556c4fd10cf3627b6e5c292a1f178a5578f.tar.bz2
hurd-d0e63556c4fd10cf3627b6e5c292a1f178a5578f.zip
Add proc_getchildren_rusage RPC and track rusage for children and descendants
Message-ID: <20240216182630.5770-2-flaviocruz@gmail.com>
Diffstat (limited to 'proc/proc.h')
-rw-r--r--proc/proc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc/proc.h b/proc/proc.h
index a83a5090..bbba0958 100644
--- a/proc/proc.h
+++ b/proc/proc.h
@@ -76,7 +76,9 @@ struct proc
int p_sigcode;
struct rusage p_rusage; /* my usage if I'm dead, to return via wait */
- struct rusage p_child_rusage; /* accumulates p_rusage of all dead children */
+ /* Accumulates p_rusage of all dead children, including
+ * grandchildren and their descendants. */
+ struct rusage p_child_rusage;
unsigned int p_exec:1; /* has called proc_mark_exec */
unsigned int p_stopped:1; /* has called proc_mark_stop */