Date: Thu, 2 Nov 2006 08:25:38 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 109018 for review Message-ID: <200611020825.kA28Pc9q093149@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109018 Change 109018 by rdivacky@rdivacky_witten on 2006/11/02 08:25:06 Dont lock proc->pid in getpid and gettid. Suggested by: jhb Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#26 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#26 (text+ko) ==== @@ -1397,9 +1397,7 @@ td->td_retval[0] = em->shared->group_pid; EMUL_UNLOCK(&emul_lock); } else { - PROC_LOCK(td->td_proc); td->td_retval[0] = td->td_proc->p_pid; - PROC_UNLOCK(td->td_proc); } return (0); @@ -1413,9 +1411,7 @@ printf(ARGS(gettid, "")); #endif - PROC_LOCK(td->td_proc); td->td_retval[0] = td->td_proc->p_pid; - PROC_UNLOCK(td->td_proc); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611020825.kA28Pc9q093149>