diff options
author | jhb <jhb@FreeBSD.org> | 2004-02-11 18:04:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-02-11 18:04:13 +0000 |
commit | 920753994a7214f33c6eb260960a56e05a24885e (patch) | |
tree | 0f4c6f12f9baef4892325783bcdb05734c25bada /sys/kern/kern_resource.c | |
parent | 7e5e459beb0fa7f41d97455bdc57e0d4a80f12b6 (diff) | |
download | FreeBSD-src-920753994a7214f33c6eb260960a56e05a24885e.zip FreeBSD-src-920753994a7214f33c6eb260960a56e05a24885e.tar.gz |
Argh! Fix a bogon. lim_cur() was returning the hard (max) limit rather
than the soft (cur) limit.
Submitted by: bde
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index e995d1c..573a2ef 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -905,7 +905,7 @@ lim_cur(struct proc *p, int which) struct rlimit rl; lim_rlimit(p, which, &rl); - return (rl.rlim_max); + return (rl.rlim_cur); } /* |