diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-17 21:49:49 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-17 21:49:49 +0000 |
commit | f24e60f1343c74beab961009ea4c545c805858e3 (patch) | |
tree | a2230172cce5772e3a8d24b8ccdf32af8b79e68f /term/users.c | |
parent | 0af047580d3888861521979e4999722ccf9288f7 (diff) |
Wed Mar 17 16:32:05 1999 Thomas Bushnell, BSG <tb@mit.edu>
* 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 <tb@mit.edu>
* 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.
Diffstat (limited to 'term/users.c')
-rw-r--r-- | term/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |