aboutsummaryrefslogtreecommitdiff
path: root/proc/proc.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-04 23:32:36 +0000
committerRoland McGrath <roland@gnu.org>2001-08-04 23:32:36 +0000
commita07736d2abd88053b2a169d3f3e15260363b3626 (patch)
tree9a72dd34403e2240e3fe5cc48cdbd70f55d5ec1c /proc/proc.h
parentdeec92cabde95119d76d2957c14a875a0eb711cd (diff)
downloadhurd-a07736d2abd88053b2a169d3f3e15260363b3626.tar.gz
hurd-a07736d2abd88053b2a169d3f3e15260363b3626.tar.bz2
hurd-a07736d2abd88053b2a169d3f3e15260363b3626.zip
2001-08-04 Roland McGrath <roland@frob.com>
* proc.h (struct proc): New members p_rusage, p_child_rusage. * wait.c (rusage_add): New static function. (alert_parent): Use it to add dead child's p_rusage into parent's p_child_rusage. (S_proc_wait): Fill *RU out param with CHILD->p_rusage, not just zeros. Rewrote subfunction child_ready and its two callers into new subfunction reap to reduce duplicated code.
Diffstat (limited to 'proc/proc.h')
-rw-r--r--proc/proc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proc/proc.h b/proc/proc.h
index 39755986..0e83574d 100644
--- a/proc/proc.h
+++ b/proc/proc.h
@@ -1,5 +1,5 @@
/* Process server definitions
- Copyright (C) 1992,93,94,95,96,99,2000 Free Software Foundation, Inc.
+ Copyright (C) 1992,93,94,95,96,99,2000,01 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -65,6 +65,9 @@ struct proc
vm_address_t p_argv, p_envp;
int p_status; /* to return via wait */
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 */
unsigned int p_exec:1; /* has called proc_mark_exec */
unsigned int p_stopped:1; /* has called proc_mark_stop */