Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2006 14:03:56 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105791 for review
Message-ID:  <200609071403.k87E3uhC019246@repoman.freebsd.org>

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

Change 105791 by millert@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609071403.k87E3uhC019246>