git: kernel -- syscons: Resolve unmatched PHOLD() for MOUSE_MODE ioctl.
swildner at crater.dragonflybsd.org
Thu Mar 21 12:10:27 PDT 2013
Author: Venkatesh Srinivas <me at 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
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(-)
DragonFly BSD source repository
More information about the Commits