Increase the vector that's used to look for free pty's. We go through

/dev/ttypv right now, but window(1) was only looking up to ttypf,
causing an `Out of pseudo-terminals' when i just tried on freefall.
This commit is contained in:
Joerg Wunsch 1999-03-03 12:08:49 +00:00
parent c1aca4d070
commit 569b765ba9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44445

View File

@ -62,7 +62,7 @@ register struct ww *w;
w->ww_ttyname[_0_9] = '0';
if (access(w->ww_ttyname, 0) < 0)
break;
for (p = "0123456789abcdef"; *p; p++) {
for (p = "0123456789abcdefghijklmnopqrstuv"; *p; p++) {
w->ww_ttyname[_PT] = 'p';
w->ww_ttyname[_0_9] = *p;
if ((w->ww_pty = open(w->ww_ttyname, 2)) < 0)