diff options
-rw-r--r-- | term/ptyio.c | 2 | ||||
-rw-r--r-- | term/term.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index fadddc16..928ae0ac 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -72,7 +72,7 @@ pty_open_hook (struct trivfs_control *cntl, pthread_mutex_lock (&global_lock); - if (ptyopen) + if (ptyopen || nperopens) { pthread_mutex_unlock (&global_lock); return EBUSY; diff --git a/term/term.h b/term/term.h index 162ed49d..efe27ffa 100644 --- a/term/term.h +++ b/term/term.h @@ -31,6 +31,8 @@ #include <features.h> #include <hurd/hurd_types.h> +extern int nperopens; + #ifdef TERM_DEFINE_EI #define TERM_EI #else |