diff options
author | jhb <jhb@FreeBSD.org> | 2002-01-15 14:17:07 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-01-15 14:17:07 +0000 |
commit | 873822cd833c6f125d95130a1fe85df82b78fe3b (patch) | |
tree | fba410d4bfed9e10b6146a7956f8c02ed88b4b1d /lib/libc/string/strdup.c | |
parent | 2aa7f13a7d0162ad396a95251dceae601862f622 (diff) | |
download | FreeBSD-src-873822cd833c6f125d95130a1fe85df82b78fe3b.zip FreeBSD-src-873822cd833c6f125d95130a1fe85df82b78fe3b.tar.gz |
- Catch up printtrap() to KSE by using curthread and testing it against
NULL rather than curproc. Without this, if we trap early before
curthread is set, we recursively panic.
- In an SMP kernel, if we trap before curthread is set, then trap is going
to recursively panic trying to bump td->td_md.md_kernnest. The trap is
fatal anyways, so to make debugging easier just call printtrap() to
dump the trap info to the console and then halt.
Diffstat (limited to 'lib/libc/string/strdup.c')
0 files changed, 0 insertions, 0 deletions