diff options
Diffstat (limited to 'term')
-rw-r--r-- | term/users.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/term/users.c b/term/users.c index 93ce4a88..7f6ed7db 100644 --- a/term/users.c +++ b/term/users.c @@ -1581,6 +1581,8 @@ trivfs_S_io_set_all_openmodes (struct trivfs_protid *cred, mutex_lock (&global_lock); cred->po->openmodes &= ~HONORED_STATE_MODES; cred->po->openmodes |= (bits & HONORED_STATE_MODES); + if (bits & O_ASYNC) + termflags |= ICKY_ASYNC; mutex_unlock (&global_lock); return 0; } @@ -1596,6 +1598,8 @@ trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred, mutex_lock (&global_lock); cred->po->openmodes |= (bits & HONORED_STATE_MODES); + if (bits & O_ASYNC) + termflags |= ICKY_ASYNC; mutex_unlock (&global_lock); return 0; } |