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

git: kernel - Fix panic when X11 intercepts console


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Sep 2010 10:00:01 -0700 (PDT)

commit 137b3005941f794eb062a6701382d4620cb03f6a
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sun Sep 5 09:57:56 2010 -0700

    kernel - Fix panic when X11 intercepts console
    
    * The kprintf() path was trying to acquire the tty_token.  When called
      from a hard code section without the token already held this can block
      and thus will assert.
    
    * When a console intercept is active we now only print to it if we can
      acquire the tty_token non-blocking.  And too bad otherwise.  The
      dmesg log will still get the whole of the output.
    
    * Remove a recursive kprintf() in the clist code.
    
    * Document the return value for lwkt_trytoken().
    
    Reported-by: Johannes Hofmann <johannes.hofmann@gmx.de>

Summary of changes:
 sys/kern/lwkt_token.c |    3 +++
 sys/kern/subr_prf.c   |   21 +++++++++++++++------
 sys/kern/tty_subr.c   |    1 -
 3 files changed, 18 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/137b3005941f794eb062a6701382d4620cb03f6a


-- 
DragonFly BSD source repository



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