minor patch for net/socket.c

Bill Hawes (whawes@star.net)
Thu, 14 Aug 1997 17:40:51 -0400


This is a multi-part message in MIME format.
--------------DBC51A466501115BBAC4CA70
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Attached is a one-liner to set i_nlink to 0 for socket inodes. This
will allow the socket inode to be immediately reused on release.

Regards,
Bill
--------------DBC51A466501115BBAC4CA70
Content-Type: text/plain; charset=us-ascii; name="socket_49-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="socket_49-patch"

--- net/socket.c.old Thu Jul 24 13:34:39 1997
+++ net/socket.c Tue Aug 12 09:06:25 1997
@@ -285,6 +285,7 @@

inode->i_mode = S_IFSOCK;
inode->i_sock = 1;
+ inode->i_nlink = 0;
inode->i_uid = current->uid;
inode->i_gid = current->gid;

--------------DBC51A466501115BBAC4CA70--