diff options
Diffstat (limited to 'lib/libutil/pty.c')
-rw-r--r-- | lib/libutil/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c index 0b5e4ab..60ca6ed 100644 --- a/lib/libutil/pty.c +++ b/lib/libutil/pty.c @@ -77,7 +77,7 @@ openpty(amaster, aslave, name, termp, winp) line[9] = *cp2; if ((master = open(line, O_RDWR, 0)) == -1) { if (errno == ENOENT) - return (-1); /* out of ptys */ + break; /* try the next pty group */ } else { line[5] = 't'; (void) chown(line, getuid(), ttygid); |