From 3c82b6a5c7d5c1b0800e60202216524aac645532 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 19 Nov 2007 20:49:42 +0000 Subject: Bump up the number of ttys supported by pty(4) to 512 by making use of [pt]ty[lmnoLMNO][0-9a-v]. MFC after: 3 days Reviewed by: rwatson --- lib/libutil/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libutil') diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c index 7b67033..c94ce99 100644 --- a/lib/libutil/pty.c +++ b/lib/libutil/pty.c @@ -107,7 +107,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct win else ttygid = -1; - for (cp1 = "pqrsPQRS"; *cp1; cp1++) { + for (cp1 = "pqrsPQRSlmnoLMNO"; *cp1; cp1++) { line[8] = *cp1; for (cp2 = "0123456789abcdefghijklmnopqrstuv"; *cp2; cp2++) { line[5] = 'p'; -- cgit v1.1