From d5c57af5f9bf643cf9ef20dc3cf44317d7c2a655 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 18 Jan 1996 16:48:17 +0000 Subject: (pty_io_select): Add new reply port parameter, and ask for notification if it dies. --- term/ptyio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'term/ptyio.c') 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)) { -- cgit v1.2.3