PERFORCE change 109018 for review

Roman Divacky rdivacky at FreeBSD.org
Thu Nov 2 08:25:38 UTC 2006


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

Change 109018 by rdivacky at 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);
 }
 


More information about the p4-projects mailing list