diff options
author | Miles Bader <miles@gnu.org> | 1996-02-15 01:15:38 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-02-15 01:15:38 +0000 |
commit | 0baa0e45719097135d9f1850c8cb19178fce5033 (patch) | |
tree | 0a8137c707431bec2087945bdfcf69e2dfea438e /term | |
parent | 00f7696d15daeec9f8ab809187edb9d80bc5491d (diff) |
(trivfs_S_io_set_all_openmodes, trivfs_S_io_set_some_openmodes):
Set ICKY_ASYNC in TERMFLAGS if O_ASYNC is set in BITS.
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; } |