summaryrefslogtreecommitdiff
path: root/term/users.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-01-18 16:46:22 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-01-18 16:46:22 +0000
commite5d41f47e27fbb1cc90ea5e0b8336d4aab36dbc9 (patch)
tree345c6c764490f22170adfd086b51a28a70edfc0b /term/users.c
parent3c001eae44be712e49364c663e6193735b11e320 (diff)
(trivfs_S_io_select): Ask for notification if our reply
port dies. Pass REPLY to pty_io_select().
Diffstat (limited to 'term/users.c')
-rw-r--r--term/users.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c
index 450640be..b4df3dbe 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1710,7 +1710,7 @@ trivfs_S_io_select (struct trivfs_protid *cred,
return EOPNOTSUPP;
if (cred->pi.class == pty_class)
- return pty_io_select (cred, type, idtag);
+ return pty_io_select (cred, reply, type, idtag);
/* We don't deal with SELECT_URG here. */
if (*type & ~(SELECT_READ | SELECT_WRITE))
@@ -1736,6 +1736,7 @@ trivfs_S_io_select (struct trivfs_protid *cred,
return 0;
}
+ ports_interrupt_self_on_port_death (cred, reply);
if (hurd_condition_wait (&select_alert, &global_lock))
{
*type = 0;