summaryrefslogtreecommitdiff
path: root/term/ptyio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/ptyio.c')
-rw-r--r--term/ptyio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index ddab8eb2..36265f72 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -79,6 +79,7 @@ pty_open_hook (struct trivfs_control *cntl,
}
ptyopen = 1;
+ nptyperopens++;
report_carrier_on ();
mutex_unlock (&global_lock);
return 0;
@@ -87,9 +88,6 @@ pty_open_hook (struct trivfs_control *cntl,
error_t
pty_po_create_hook (struct trivfs_peropen *po)
{
- mutex_lock (&global_lock);
- nptyperopens++;
- mutex_unlock (&global_lock);
return 0;
}