diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-02 21:18:04 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-02 21:18:04 +0000 |
commit | 34951403fa913193c11e4f4ff51bdb2b86bf99e0 (patch) | |
tree | 816ba58e5bb6cef5cff137b002c6626a1f9d75be /term | |
parent | 793358b88389829d9f6cda6d0c47183cfab6017d (diff) |
(pty_po_create_hook): Don't do anything here.
(pty_open_hook): Increment nptyperopens here.
Diffstat (limited to 'term')
-rw-r--r-- | term/ptyio.c | 4 |
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; } |