diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-01-18 16:48:17 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-01-18 16:48:17 +0000 |
commit | d5c57af5f9bf643cf9ef20dc3cf44317d7c2a655 (patch) | |
tree | 2e19e8a3665b58961c2b23f11a9500d42bca8cb1 /term/ptyio.c | |
parent | e5d41f47e27fbb1cc90ea5e0b8336d4aab36dbc9 (diff) |
(pty_io_select): Add new reply port parameter, and ask
for notification if it dies.
Diffstat (limited to 'term/ptyio.c')
-rw-r--r-- | term/ptyio.c | 7 |
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)) { |