Date: Thu, 6 Jul 2006 11:13:31 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100721 for review Message-ID: <200607061113.k66BDVIH066004@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100721 Change 100721 by rdivacky@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607061113.k66BDVIH066004>