Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2006 19:58:26 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 108941 for review
Message-ID:  <200611011958.kA1JwQbN022477@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108941

Change 108941 by rdivacky@rdivacky_witten on 2006/11/01 19:57:42

	Lock proc in gettid.

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#22 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#22 (text+ko) ====

@@ -1408,7 +1408,9 @@
 		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?200611011958.kA1JwQbN022477>