summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-12 18:54:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-12 18:54:39 +0000
commitfda9bc55fe2458821c5b9540605d2d1de416ab64 (patch)
tree97267703a7d85c1675f61dc1b59faafe78d2ef9a /term
parent53cb8351b74b52fe52f1d2cab350dde7ce38c103 (diff)
(S_term_get_bottom_type): Return TERM_ON_MASTERPTY when appropriate.
Diffstat (limited to 'term')
-rw-r--r--term/users.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c
index 8b27acee..c472f67c 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1828,7 +1828,10 @@ S_term_get_bottom_type (io_t arg,
return EOPNOTSUPP;
ports_port_deref (cred);
- *ttype = TERM_ON_MACHDEV;
+ if (bottom == &devio_bottom)
+ *ttype = TERM_ON_MACHDEV;
+ else
+ *ttype = TERM_ON_MASTERPTY;
return 0;
}