DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel -- syscons: Resolve unmatched PHOLD() for MOUSE_MODE ioctl.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Mar 2013 12:10:27 -0700 (PDT)

commit c3ab84cc4b098e768a5ab0e74ea571534875a455
Author: Venkatesh Srinivas <me@endeavour.zapto.org>
Date:   Thu Mar 21 03:50:52 2013 -0400

    kernel -- syscons: Resolve unmatched PHOLD() for MOUSE_MODE ioctl.
    
    When a syscons process put itself into MOUSE_MODE, a process-hold
    was being placed to stabilize the process for signal delivery. The
    hold was not being released on process exit, however.
    
    This change reworks syscons to install a per-process flag as to
    whether it is in MOUSE_MODE or not and to remove the excess hold on
    exit(). It also cleans up the error handling and prevents stale
    process pointers from lingering in syscons stat structures.
    
    Reported-by: mneumann, Studbolt
    Closes-bug: 2521

Summary of changes:
 sys/dev/misc/syscons/Makefile  |   1 -
 sys/dev/misc/syscons/scmouse.c | 166 ++++++++++++++++++++++++++++++-----------
 sys/sys/proc.h                 |   4 +-
 3 files changed, 124 insertions(+), 47 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c3ab84cc4b098e768a5ab0e74ea571534875a455


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]