PERFORCE change 105791 for review

Todd Miller millert at FreeBSD.org
Thu Sep 7 14:03:57 UTC 2006


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

Change 105791 by millert at millert_g5tower on 2006/09/07 14:03:21

	Fix boolean logic inversion that caused the blocking allocator
	to be used when we wanted the non-blocking one (and vice versa).

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/uipc_socket.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/uipc_socket.c#4 (text+ko) ====

@@ -274,7 +274,7 @@
 
 	    lck_mtx_unlock(so_cache_mtx);
 
-	    if (waitok)
+	    if (waitok == M_WAITOK)
 		 *so = (struct socket *) zalloc(so_cache_zone);
 	    else
 		 *so = (struct socket *) zalloc_noblock(so_cache_zone);


More information about the p4-projects mailing list