diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-25 20:04:10 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-25 20:04:10 +0000 |
commit | 0133c3cf8ed094736fdf38aad82c70a6841a188a (patch) | |
tree | b61609fac4a719bb2f84842c41c3b160ebb8be25 | |
parent | fac6d9a6d59a83e96314103b3181f6f692537014 (diff) |
(open_hook): Don't circumvent pty_open_hook, not even when flags is
clear.
-rw-r--r-- | term/users.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/term/users.c b/term/users.c index 15594623..04022080 100644 --- a/term/users.c +++ b/term/users.c @@ -104,12 +104,12 @@ open_hook (struct trivfs_control *cntl, int cancel = 0; error_t err; - if ((flags & (O_READ|O_WRITE)) == 0) - return 0; - if (cntl == ptyctl) return pty_open_hook (cntl, uids, nuids, gids, ngids, flags); + if ((flags & (O_READ|O_WRITE)) == 0) + return 0; + mutex_lock (&global_lock); if (!(termflags & TTY_OPEN)) |