From owner-freebsd-current Thu Feb 27 15:35:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1985E37B401 for ; Thu, 27 Feb 2003 15:35:17 -0800 (PST) Received: from scl8owa02.int.exodus.net (scl8out02.exodus.net [66.35.230.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id A107E43FD7 for ; Thu, 27 Feb 2003 15:35:11 -0800 (PST) (envelope-from Maksim.Yevmenkin@cw.com) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa02.int.exodus.net with Microsoft SMTPSVC(5.0.2195.5329); Thu, 27 Feb 2003 15:35:11 -0800 Received: from exodus.net ([165.193.27.35]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.5329); Thu, 27 Feb 2003 15:35:11 -0800 Message-ID: <3E5E9FF0.3030106@exodus.net> Date: Thu, 27 Feb 2003 15:32:00 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021126 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: current@freebsd.org Subject: PATCH: typo in socreate() or i'm missing something Content-Type: multipart/mixed; boundary="------------050401070204020509090907" X-OriginalArrivalTime: 27 Feb 2003 23:35:11.0192 (UTC) FILETIME=[DEBAAD80:01C2DEB8] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------050401070204020509090907 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear Hackets, Please find the attached patch for socreate() in uipc_socket.c. I think the code was supposed to call soalloc(0) rather then soalloc(M_NOWAIT). Note M_NOWAIT defined as 1. Is that a real typo or i'm missing something here? thanks, max --------------050401070204020509090907 Content-Type: text/plain; name="uipc_socket.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="uipc_socket.c.diff" --- uipc_socket.c.orig Thu Feb 27 15:24:52 2003 +++ uipc_socket.c Thu Feb 27 15:25:08 2003 @@ -194,7 +194,7 @@ if (prp->pr_type != type) return (EPROTOTYPE); - so = soalloc(M_NOWAIT); + so = soalloc(0); if (so == NULL) return (ENOBUFS); --------------050401070204020509090907-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message