diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-12 18:54:39 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-12 18:54:39 +0000 |
commit | fda9bc55fe2458821c5b9540605d2d1de416ab64 (patch) | |
tree | 97267703a7d85c1675f61dc1b59faafe78d2ef9a /term | |
parent | 53cb8351b74b52fe52f1d2cab350dde7ce38c103 (diff) |
(S_term_get_bottom_type): Return TERM_ON_MASTERPTY when appropriate.
Diffstat (limited to 'term')
-rw-r--r-- | term/users.c | 5 |
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; } |