PERFORCE change 100721 for review
Roman Divacky
rdivacky at FreeBSD.org
Thu Jul 6 11:13:42 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100721
Change 100721 by rdivacky at rdivacky_witten on 2006/07/06 11:12:55
Forgot to set the P_LINUX flag in linux_proc_init. Now we set it.
Affected files ...
.. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#8 edit
Differences ...
==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#8 (text+ko) ====
@@ -1023,6 +1023,7 @@
{
struct linux_emuldata *em, *p_em;
int found = 0;
+ struct proc *p;
/* XXX: locking? */
MALLOC(em, struct linux_emuldata *, sizeof *em, M_LINUX, M_WAITOK | M_ZERO);
@@ -1063,6 +1064,13 @@
/* XXX: sched_lock locking? */
+ /* find the newly created thread and set the P_LINUX flag */
+ if (child != 0) {
+ p = pfind(child);
+ p->p_flag |= P_LINUX;
+ PROC_UNLOCK(p);
+ }
+
return (0);
}
More information about the p4-projects
mailing list