From owner-p4-projects@FreeBSD.ORG Thu Sep 7 14:03:57 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4161416A4E1; Thu, 7 Sep 2006 14:03:57 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CF6116A4DD for ; Thu, 7 Sep 2006 14:03:57 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDE0B43D45 for ; Thu, 7 Sep 2006 14:03:56 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k87E3uBM019249 for ; Thu, 7 Sep 2006 14:03:56 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k87E3uhC019246 for perforce@freebsd.org; Thu, 7 Sep 2006 14:03:56 GMT (envelope-from millert@freebsd.org) Date: Thu, 7 Sep 2006 14:03:56 GMT Message-Id: <200609071403.k87E3uhC019246@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 105791 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2006 14:03:57 -0000 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);