diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-07 21:51:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-07 21:51:31 +0000 |
commit | a3bac0e8a98be09d7db0681e963e473b889faec6 (patch) | |
tree | 6c2104d1dadd9964c5653f8b1ba58f8853646f24 /sys/kern/kern_sysctl.c | |
parent | be2b81b9d8787d66960c0458337ed577764633b4 (diff) |
Add p_rlim_rss_cur for ps "lim" field. OK deraadt@
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index e39f26dbe67..9efc6ec6562 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.97 2004/01/07 21:30:59 markus Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.98 2004/01/07 21:51:30 millert Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -1233,6 +1233,8 @@ fill_kproc2(struct proc *p, struct kinfo_proc2 *ki) ki->p_eflag |= EPROC_CTTY; if (SESS_LEADER(p)) ki->p_eflag |= EPROC_SLEADER; + if (p->p_rlimit) + ki->p_rlim_rss_cur = p->p_rlimit[RLIMIT_RSS].rlim_cur; /* XXX Is this double check necessary? */ if (P_ZOMBIE(p)) { |