diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2024-02-16 13:26:29 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-17 02:24:23 +0100 |
commit | d0e63556c4fd10cf3627b6e5c292a1f178a5578f (patch) | |
tree | 7a4098d700723156ec9c7bde1085b0213fa90192 /proc/info.c | |
parent | 786fc07a9f990224db98f40ca819c81ab4e59966 (diff) | |
download | hurd-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/info.c')
-rw-r--r-- | proc/info.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/proc/info.c b/proc/info.c index 2d85662d..e5b0f472 100644 --- a/proc/info.c +++ b/proc/info.c @@ -1093,3 +1093,11 @@ S_proc_get_exe (struct proc *callerp, return 0; } +kern_return_t +S_proc_getchildren_rusage (struct proc *p, struct rusage *ru) +{ + if (!p) + return EOPNOTSUPP; + *ru = p->p_child_rusage; + return 0; +} |