Date: Tue, 1 Aug 2006 15:02:54 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102934 for review Message-ID: <200608011502.k71F2sgw098779@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102934 Change 102934 by rdivacky@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608011502.k71F2sgw098779>