git: kernel - Fix panic when X11 intercepts console

Matthew Dillon dillon at
Sun Sep 5 10:01:11 PDT 2010

commit 137b3005941f794eb062a6701382d4620cb03f6a
Author: Matthew Dillon <dillon at>
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 at>

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(-)

DragonFly BSD source repository

More information about the Commits mailing list