mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
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:
parent
c1aca4d070
commit
569b765ba9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44445
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user