summaryrefslogtreecommitdiffstats
path: root/share/man/man4/pts.4
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-04-25 10:05:55 +0000
committered <ed@FreeBSD.org>2009-04-25 10:05:55 +0000
commitb8d7cb19636eb37c6cbc16a9e6d44a68265e7138 (patch)
tree3cb0dc4398f6ff8a3f7bbff483ff279c4332724b /share/man/man4/pts.4
parent4ffa3051a8799989b43481594165c440e60f74a6 (diff)
downloadFreeBSD-src-b8d7cb19636eb37c6cbc16a9e6d44a68265e7138.zip
FreeBSD-src-b8d7cb19636eb37c6cbc16a9e6d44a68265e7138.tar.gz
Turn MAXPTSDEVS into a sysctl tunable.
This allows users to increase the maximum amount of pseudo-terminals without changing any source code. Users must increase UT_LINESIZE before attempting to increase kern.pts_maxdev.
Diffstat (limited to 'share/man/man4/pts.4')
-rw-r--r--share/man/man4/pts.420
1 files changed, 20 insertions, 0 deletions
diff --git a/share/man/man4/pts.4 b/share/man/man4/pts.4
index 9ae2d73..294f1ef 100644
--- a/share/man/man4/pts.4
+++ b/share/man/man4/pts.4
@@ -156,6 +156,26 @@ though
.It Pa /dev/pts/[num]
Pseudo-terminal slave devices.
.El
+.Sh SYSCTL VARIABLES
+The following
+.Xr sysctl 8
+variables can be used to modify or monitor
+.Nm
+behavior.
+.Bl -tag -width indent
+.It Va kern.pts_maxdev
+Highest pseudo-terminal unit number to be allocated.
+Because
+.Xr utmp 5
+is restricted to an 8-byte line name size,
+.Nm
+will not create any pseudo-terminals with a unit number above 999 by
+default.
+After increasing
+.Dv UT_LINESIZE ,
+this variable can be changed to allow more than 1000 pseudo-terminals to
+be allocated simultaneously.
+.El
.Sh DIAGNOSTICS
None.
.Sh SEE ALSO
OpenPOWER on IntegriCloud