summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-01-18 16:48:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-01-18 16:48:17 +0000
commitd5c57af5f9bf643cf9ef20dc3cf44317d7c2a655 (patch)
tree2e19e8a3665b58961c2b23f11a9500d42bca8cb1
parente5d41f47e27fbb1cc90ea5e0b8336d4aab36dbc9 (diff)
(pty_io_select): Add new reply port parameter, and ask
for notification if it dies.
-rw-r--r--term/ptyio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index c8b9f534..096ab9d0 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -404,9 +404,8 @@ pty_io_readable (int *amt)
/* Validation has already been done by trivfs_S_io_select. */
error_t
-pty_io_select (struct trivfs_protid *cred,
- int *type,
- int *idtag)
+pty_io_select (struct trivfs_protid *cred, mach_port_t reply,
+ int *type, int *idtag)
{
int avail = 0;
@@ -433,6 +432,8 @@ pty_io_select (struct trivfs_protid *cred,
return 0;
}
+ ports_interrupt_self_on_port_death (cred, reply);
+
pty_read_blocked = 1;
if (hurd_condition_wait (&pty_select_wakeup, &global_lock))
{