Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 15:32:00 -0800
From:      Maksim Yevmenkin <myevmenk@exodus.net>
To:        current@freebsd.org
Subject:   PATCH: typo in socreate() or i'm missing something
Message-ID:  <3E5E9FF0.3030106@exodus.net>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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




[-- Attachment #2 --]
--- 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);
 
help

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