diff options
author | billf <billf@FreeBSD.org> | 2001-03-10 10:39:52 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2001-03-10 10:39:52 +0000 |
commit | 61fee9038f4e364a779f4b722249f6c3ac3fd87c (patch) | |
tree | 59f7c0b2ba32b8bad4d5aca207d42839999c1a6b /lib/libutil/pty.c | |
parent | 2d1e8b393b0f5f43ef5ef2226db152c6d8b011ee (diff) | |
download | FreeBSD-src-61fee9038f4e364a779f4b722249f6c3ac3fd87c.zip FreeBSD-src-61fee9038f4e364a779f4b722249f6c3ac3fd87c.tar.gz |
In theory it would be perfectly legal for a system administrator to
# cd /dev && ./MAKEDEV pty0 pty3
and/or
# rm -rf /dev/ptyp0
and expect all programs that use openpty() to still try to find available ptys.
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); |