PERFORCE change 103441 for review
Roman Divacky
rdivacky at FreeBSD.org
Tue Aug 8 13:34:52 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103441
Change 103441 by rdivacky at 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;
More information about the p4-projects
mailing list