From 0133c3cf8ed094736fdf38aad82c70a6841a188a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 25 Apr 1996 20:04:10 +0000 Subject: (open_hook): Don't circumvent pty_open_hook, not even when flags is clear. --- term/users.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term/users.c') 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)) -- cgit v1.2.3