From f24e60f1343c74beab961009ea4c545c805858e3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 17 Mar 1999 21:49:49 +0000 Subject: Wed Mar 17 16:32:05 1999 Thomas Bushnell, BSG * users.c (S_term_get_peername): Compare BOTTOM against the correct value, and call ports_port_deref with the proper name. Reported by Yamashita TAKAO (az207@epa.go.jp). * devio.c (devio_desert_dtr): Cast &BITS correctly in call to device_set_status. (device_open_reply): Alwas clean open_pending no matter what. Use ERR instead of ERRNO. On fake opens, close the device before deallocating the port. Reported by Mark Kettenis (kettenis@gnu.org). Tue Mar 16 01:04:06 1999 Thomas Bushnell, BSG * devio.c (open_pending): Make an enum. (devio_desert_dtr): Don't close the device, just set the TM_HUP modem bit, which should cause a hangup to occur. (devio_assert_dtr): Don't always open the device, instead use initial_open the first time, and schedule a fake open the other times. (initial_open): New function, guts from old device_assert_dtr. (device_open_reply): Distinguish replies from initial and fake opens appropriately. (ports_do_mach_notify_send_once): Test and set open_pending using new enum values. --- term/users.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term/users.c') diff --git a/term/users.c b/term/users.c index 828b1a3d..9f2a3eff 100644 --- a/term/users.c +++ b/term/users.c @@ -2208,9 +2208,9 @@ S_term_get_peername (io_t arg, peer = (cred->pi.class == tty_class) ? ptyctl : termctl; - if (bottom != ptyio_bottom || !peer->hook) + if (bottom != &ptyio_bottom || !peer->hook) { - port_port_deref (cred); + ports_port_deref (cred); return ENOENT; } -- cgit v1.2.3