diff options
Diffstat (limited to 'term/ptyio.c')
-rw-r--r-- | term/ptyio.c | 2 |
1 files changed, 1 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; |