patch-2.3.21 linux/net/socket.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.20/linux/net/socket.c linux/net/socket.c
@@ -670,7 +670,7 @@
 
 /* This function may be called only under socket lock or callback_lock */
 
-int sock_wake_async(struct socket *sock, int how)
+int sock_wake_async(struct socket *sock, int how, int band)
 {
 	if (!sock || !sock->fasync_list)
 		return -1;
@@ -689,9 +689,11 @@
 	call_kill:
 		/* read_lock(&sock->sk->callback_lock); */
 		if(sock->fasync_list != NULL)
-			kill_fasync(sock->fasync_list, SIGIO);
+			kill_fasync(sock->fasync_list, SIGIO, band);
 		/* read_unlock(&sock->sk->callback_lock); */
 		break;
+	case 3:
+		kill_fasync(sock->fasync_list, SIGURG, band);
 	}
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)