Subject: SMP problems in fork()?
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 12/08/2002 21:42:58
In fork1(), we set the child as runnable, and we use a pointer to its
proc structure after this.=20

On a SMP system, the child could be scheduled for running on another
CPU, and it could even die before we get out of fork1(), thus making us
using a stale pointer on its struct proc.

It seems to me that we need to cleanup the end of fork1(), but I'm not
sure of what should be done.

--=20
Emmanuel Dreyfus. =20
Vous avez deplac=E9 la souris.=20
Windows NT doit maintenant redemarrer pour valider les modifications.
manu@netbsd.org