PERFORCE change 102934 for review

Roman Divacky rdivacky at FreeBSD.org
Tue Aug 1 15:02:57 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=102934

Change 102934 by rdivacky at rdivacky_witten on 2006/08/01 15:02:13

	Copy out the pid of the correct process (ie. the new one). I copied this from Linux,
	NetBSD seems to have the same bug.

Affected files ...

.. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#30 edit

Differences ...

==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#30 (text+ko) ====

@@ -432,7 +432,7 @@
 		   	EMUL_RUNLOCK(&emul_lock);
 			return (EINVAL);
 		}
-		error = copyout(&td->td_proc->p_pid, args->parent_tidptr, sizeof(td->td_proc->p_pid));
+		error = copyout(&p2->p_pid, args->parent_tidptr, sizeof(td->td_proc->p_pid));
 		if (error) {
 		   	EMUL_RUNLOCK(&emul_lock);
 			return (error);


More information about the p4-projects mailing list