diff options
Diffstat (limited to 'term/users.c')
-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)) |