get/setrlimit issues in inndstart

Russ Allbery rra at stanford.edu
Thu Jun 22 03:34:02 UTC 2000


mki <mki at primenet.com> writes:

> Currently, inndstart.c sets RLIMIT_NOFILE by changing the rlim_cur
> member of struct rlimit.  Wouldn't it be advisable to make it change
> rlim_max as well? because, if someone specifies rlimitnofile: in
> inn.conf to be some value, say 512, and the default maximum descriptor
> limit is 64, then setrlimit() fails with EINVAL, because rlim_cur is
> greater than rlim_max.

> ie. in inndstart.c at line 95 or 96, add rl.rlim_max = n; 

Good point, thanks.  Done.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list