Date: Thu, 2 Nov 2006 07:55:59 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 109014 for review Message-ID: <200611020755.kA27txfg087134@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109014 Change 109014 by rdivacky@rdivacky_witten on 2006/11/02 07:55:11 Share pid and threads etc for CLONE_THREAD not for CLONE_VM. This makes clone02 and hopefully a lot of other tests in LTP work. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#14 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#14 (text+ko) ==== @@ -85,7 +85,7 @@ em = malloc(sizeof *em, M_LINUX, M_WAITOK | M_ZERO); em->pid = child; em->pdeath_signal = 0; - if (flags & CLONE_VM) { + if (flags & CLONE_THREAD) { /* handled later in the code */ } else { struct linux_emuldata_shared *s; @@ -117,10 +117,10 @@ * the newly created proc */ if (child != 0) { - if (flags & CLONE_VM) { + if (flags & CLONE_THREAD) { /* lookup the parent */ p_em = em_find(td->td_proc, EMUL_LOCKED); - KASSERT(p_em != NULL, ("proc_init: parent emuldata not found for CLONE_VM\n")); + KASSERT(p_em != NULL, ("proc_init: parent emuldata not found for CLONE_THREAD\n")); em->shared = p_em->shared; em->shared->refs++; } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611020755.kA27txfg087134>