Argh! Fix a bogon. lim_cur() was returning the hard (max) limit rather

than the soft (cur) limit.

Submitted by:	bde
This commit is contained in:
John Baldwin 2004-02-11 18:04:13 +00:00
parent 1723bc36ef
commit e7a44cace2

View File

@ -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);
}
/*