diff options
Diffstat (limited to 'term/ptyio.c')
-rw-r--r-- | term/ptyio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index ea032be6..c4fea4a1 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -211,7 +211,8 @@ struct bottomhalf ptyio_bottom = /* Validation has already been done by trivfs_S_io_read. */ error_t -pty_io_read (char **data, +pty_io_read (struct trivfs_protid *cred, + char **data, mach_msg_type_number_t *datalen, mach_msg_type_number_t amount) { @@ -219,6 +220,8 @@ pty_io_read (char **data, mutex_lock (&global_lock); + /* Validate CRED. XXX */ + while (!control_byte && (!qsize (outputq) || (termflags & USER_OUTPUT_SUSP))) { |