diff options
author | jhb <jhb@FreeBSD.org> | 2001-03-07 02:30:39 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-03-07 02:30:39 +0000 |
commit | 8dbcf4e47b467e6c555d7d4e81cc6ced6ae22f4d (patch) | |
tree | ca16e4072308ef53fc62518f957738a24ff4c1da /sys/kern/kern_kthread.c | |
parent | c7d1d654990520c728b49d9c95d05d3f5b807839 (diff) | |
download | FreeBSD-src-8dbcf4e47b467e6c555d7d4e81cc6ced6ae22f4d.zip FreeBSD-src-8dbcf4e47b467e6c555d7d4e81cc6ced6ae22f4d.tar.gz |
- Lock the forklist with an sx lock.
- Add proc locking to fork1(). Always lock the child procoess (new
process) first when both processes need to be locked at the same
time.
- Remove unneeded spl()'s as the data they protected is now locked.
- Ensure that the proctree is exclusively locked and the new process is
locked when setting up the parent process pointer.
- Lock the check for P_KTHREAD in p_flag in fork_exit().
Diffstat (limited to 'sys/kern/kern_kthread.c')
0 files changed, 0 insertions, 0 deletions