summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2003-05-16 01:10:33 +0000
committertmm <tmm@FreeBSD.org>2003-05-16 01:10:33 +0000
commit19a94ea3a38a44ec60c6ebec5f3a8d99d066c45f (patch)
treef517e59abbeb865a8aa866648f8af14b8594c796 /sys/kern/kern_sig.c
parentfa59fd22ea459419f0ca4610aa7c8bedce7594ce (diff)
downloadFreeBSD-src-19a94ea3a38a44ec60c6ebec5f3a8d99d066c45f.zip
FreeBSD-src-19a94ea3a38a44ec60c6ebec5f3a8d99d066c45f.tar.gz
In cpu_fork(), initialize pcb_psl for the new process to PSL_KERNEL,
instead of taking the (userland) eflags from the trap frame and masking out PSL_I. There is no need to inherit any flags from the forking process; the old method however can cause flags set in userland for the forking process to be bogusly set in kernel mode when the newly forked process runs for the first time (in particular PSL_T, which is set for userland when the process is single-stepped; this would cause trace traps in kernel mode). Approved by: re (jhb)
Diffstat (limited to 'sys/kern/kern_sig.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud