git: kernel - Fix panic when X11 intercepts console

看板DFBSD_commit作者時間15年前 (2010/09/06 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CWzhjMr (DFBSD_commit)