summaryrefslogtreecommitdiff
path: root/lib/libutil/pty.c
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2001-03-10 10:39:52 +0000
committerBill Fumerola <billf@FreeBSD.org>2001-03-10 10:39:52 +0000
commitf6f1b6b6761e0e46598ac061bb795057edd5997d (patch)
treebb85e3c0ced1a14641c826e542a5cfb83c8dd736 /lib/libutil/pty.c
parenteae526b02115a449f3e6ff247596c95db67e3666 (diff)
Notes
Diffstat (limited to 'lib/libutil/pty.c')
-rw-r--r--lib/libutil/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index 0b5e4abde6a8..60ca6ed3a9e5 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);