]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for RLIMIT_NPTS to limits(1).
authored <ed@FreeBSD.org>
Tue, 2 Sep 2008 19:13:24 +0000 (19:13 +0000)
committered <ed@FreeBSD.org>
Tue, 2 Sep 2008 19:13:24 +0000 (19:13 +0000)
commit5f23a3b5ca609a1597f573305e7e58558a73a897
tree75408679db0cb502243675e0570a66b0bb817eed
parent59a00054acff9e2ada7d2366d4aeaec829dcd3a4
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