]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for RLIMIT_NPTS to limits(1).
authorEd Schouten <ed@FreeBSD.org>
Tue, 2 Sep 2008 19:13:24 +0000 (19:13 +0000)
committerEd Schouten <ed@FreeBSD.org>
Tue, 2 Sep 2008 19:13:24 +0000 (19:13 +0000)
commita583eb0809be87a80a78a970c20f024b78be8e60
tree75408679db0cb502243675e0570a66b0bb817eed
parentf98c3ea74ecd155eb7ad7b4c1b2de22eadfc2272
Add support for RLIMIT_NPTS to limits(1).

After the MPSAFE TTY import we support an additional rlimit, called
RLIMIT_NPTS. This limit allows you to cap the amount of pseudo-terminals
allocated by one user.

We forgot to add support for this limit to limits(1), which means it
crashed. Add the proper bits to make it work like it should.
Unfortunately not all shells actually implement the RLIMIT, so
unfortunately I suspect it to be broken with certain shells.

Submitted by: Yuriy Tsibizov <yuriy tsibizov gfk ru>
usr.bin/limits/limits.1
usr.bin/limits/limits.c