From fda9bc55fe2458821c5b9540605d2d1de416ab64 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 12 Dec 1995 18:54:39 +0000 Subject: (S_term_get_bottom_type): Return TERM_ON_MASTERPTY when appropriate. --- term/users.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'term') 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; } -- cgit v1.2.3