diff options
author | iedowse <iedowse@FreeBSD.org> | 2003-06-22 02:54:33 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2003-06-22 02:54:33 +0000 |
commit | 65000a220ab41d3a7e96a605fef81d386eeca712 (patch) | |
tree | 68d45a057c7fb88626bb480c259807ef2a5bf778 /lib/libpthread/sys/thr_error.c | |
parent | 17a394677499453b70b54c9df6978b192d58b581 (diff) | |
download | FreeBSD-src-65000a220ab41d3a7e96a605fef81d386eeca712.zip FreeBSD-src-65000a220ab41d3a7e96a605fef81d386eeca712.tar.gz |
Use a new message buffer `consmsgbuf' to forward messages to a
TIOCCONS console (e.g. xconsole) via a timeout routine instead of
calling into the tty code directly from printf(). This fixes a
number of cases where calling printf() at the wrong time (such as
with locks held) would cause a panic if xconsole is running.
The TIOCCONS message buffer is 8k in size by default, but this can
be changed with the kern.consmsgbuf_size sysctl. By default, messages
are checked for 5 times per second. The timer runs and the buffer
memory remains allocated only at times when a TIOCCONS console is
active.
Discussed on: freebsd-arch
Diffstat (limited to 'lib/libpthread/sys/thr_error.c')
0 files changed, 0 insertions, 0 deletions