patch-2.3.21 linux/net/core/sock.c
Next file: linux/net/decnet/dn_nsp_in.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Oct 11 10:15:40 1999
- Orig file:
v2.3.20/linux/net/core/sock.c
- Orig date:
Fri Sep 10 23:57:38 1999
diff -u --recursive --new-file v2.3.20/linux/net/core/sock.c linux/net/core/sock.c
@@ -1013,7 +1013,7 @@
read_lock(&sk->callback_lock);
if (!sk->dead) {
wake_up_interruptible(sk->sleep);
- sock_wake_async(sk->socket,0);
+ sock_wake_async(sk->socket,0,POLL_ERR);
}
read_unlock(&sk->callback_lock);
}
@@ -1023,7 +1023,7 @@
read_lock(&sk->callback_lock);
if(!sk->dead) {
wake_up_interruptible(sk->sleep);
- sock_wake_async(sk->socket,1);
+ sock_wake_async(sk->socket,1,POLL_IN);
}
read_unlock(&sk->callback_lock);
}
@@ -1041,7 +1041,7 @@
/* Should agree with poll, otherwise some programs break */
if (sock_writeable(sk))
- sock_wake_async(sk->socket, 2);
+ sock_wake_async(sk->socket, 2, POLL_OUT);
}
read_unlock(&sk->callback_lock);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)