patch-2.3.4 linux/net/socket.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sched/sch_generic.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue May 25 13:06:35 1999
- Orig file:
v2.3.3/linux/net/socket.c
- Orig date:
Fri May 14 18:55:32 1999
diff -u --recursive --new-file v2.3.3/linux/net/socket.c linux/net/socket.c
@@ -131,6 +131,11 @@
static int sockets_in_use = 0;
/*
+ * Socket hashing lock.
+ */
+rwlock_t sockhash_lock = RW_LOCK_UNLOCKED;
+
+/*
* Support routines. Move socket addresses back and forth across the kernel/user
* divide and look after the messy bits.
*/
@@ -561,7 +566,8 @@
/* fall through */
case 0:
call_kill:
- kill_fasync(sock->fasync_list, SIGIO);
+ if(sock->fasync_list != NULL)
+ kill_fasync(sock->fasync_list, SIGIO);
break;
}
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)