From a3bac0e8a98be09d7db0681e963e473b889faec6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 7 Jan 2004 21:51:31 +0000 Subject: Add p_rlim_rss_cur for ps "lim" field. OK deraadt@ --- sys/kern/kern_sysctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/kern/kern_sysctl.c') 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)) { -- cgit v1.2.3