From 34951403fa913193c11e4f4ff51bdb2b86bf99e0 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 2 Apr 1996 21:18:04 +0000 Subject: (pty_po_create_hook): Don't do anything here. (pty_open_hook): Increment nptyperopens here. --- term/ptyio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'term') 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; } -- cgit v1.2.3