Date: Tue, 6 Mar 2001 18:30:39 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_fork.c Message-ID: <200103070230.f272Ued67915@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2001/03/06 18:30:39 PST
Modified files:
sys/kern kern_fork.c
Log:
- 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().
Revision Changes Path
1.104 +58 -15 src/sys/kern/kern_fork.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103070230.f272Ued67915>
