Date: Tue, 8 Aug 2006 13:34:51 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103441 for review Message-ID: <200608081334.k78DYplO097447@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103441 Change 103441 by rdivacky@rdivacky_witten on 2006/08/08 13:34:23 Copyout bsdpid (ie. linuxtid) in the cases of PARENT/CHILD_SETTID. Also make the file compilable with -DDEBUG. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#33 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#33 (text+ko) ==== @@ -433,7 +433,7 @@ EMUL_RUNLOCK(&emul_lock); return (EINVAL); } - error = copyout(&em->shared->group_pid, args->parent_tidptr, sizeof(em->shared->group_pid)); + error = copyout(&p2->p_pid, args->parent_tidptr, sizeof(p2->p_pid)); if (error) { EMUL_RUNLOCK(&emul_lock); return (error); @@ -1329,6 +1329,9 @@ { struct linux_emuldata *em; int error = 0; +#ifdef DEBUG + struct thread *td = FIRST_THREAD_IN_PROC(p); +#endif if (p->p_sysent != &elf_linux_sysvec) return; @@ -1344,7 +1347,7 @@ } if (em->child_set_tid != NULL) - error = copyout(&em->shared->group_pid, em->child_set_tid, sizeof(em->shared->group_pid)); + error = copyout(&p->p_pid, em->child_set_tid, sizeof(p->p_pid)); EMUL_RUNLOCK(&emul_lock); return;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608081334.k78DYplO097447>