Date: Fri, 9 Jan 2004 15:42:36 -0800 (PST) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_fork.c Message-ID: <200401092342.i09Ngaob010601@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
cognet 2004/01/09 15:42:36 PST
FreeBSD src repository
Modified files:
sys/kern kern_fork.c
Log:
Prevent a race condition between fork1() and whatever changes the pgrp by
setting the new process' p_pgrp again before inserting it in the p_pglist.
Without it we can get the new process to be inserted in a different p_pglist
than the one p2->p_pgrp points to, and this is not something we want to happen.
This is not a fix, merely a bandaid, but it will work until someone finds a
better way to do it.
Discussed with: jhb (a long time ago)
Revision Changes Path
1.210 +1 -0 src/sys/kern/kern_fork.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401092342.i09Ngaob010601>
