patch-2.1.30 linux/net/socket.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/rose/rose_timer.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Thu Mar 20 18:17:16 1997
-  Orig file: 
v2.1.29/linux/net/socket.c
-  Orig date: 
Thu Feb 27 10:57:32 1997
diff -u --recursive --new-file v2.1.29/linux/net/socket.c linux/net/socket.c
@@ -130,7 +130,7 @@
  *	The protocol list. Each protocol is registered in here.
  */
 
-static struct net_proto_family *net_families[NPROTO];
+struct net_proto_family *net_families[NPROTO];
 
 /*
  *	Statistics counters of the socket lists
@@ -272,6 +272,7 @@
 	inode->i_gid = current->gid;
 
 	sock->inode = inode;
+	init_waitqueue(&sock->wait);
 	sock->fasync_list = NULL;
 	sock->state = SS_UNCONNECTED;
 	sock->flags = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov