summaryrefslogtreecommitdiffstats
path: root/net/dccp/input.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-24 06:54:23 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-30 01:05:45 +0200
commit331968bd0c1b2437f3ad773cbf55f2e0737bafc0 (patch)
treeec9c5aeaa5217c8ce009a7e5e07a60c3a390e021 /net/dccp/input.c
parent[DCCP]: Call the HC exit routines at dccp_v4_destroy_sock (diff)
downloadlinux-331968bd0c1b2437f3ad773cbf55f2e0737bafc0.tar.xz
linux-331968bd0c1b2437f3ad773cbf55f2e0737bafc0.zip
[DCCP]: Initial dccp_poll implementation
Tested with a patched netcat, no horror stories so far 8) Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/input.c')
-rw-r--r--net/dccp/input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c
index 02af05ec23a2..ef29cef1dafe 100644
--- a/net/dccp/input.c
+++ b/net/dccp/input.c
@@ -34,6 +34,7 @@ static void dccp_rcv_close(struct sock *sk, struct sk_buff *skb)
dccp_v4_send_reset(sk, DCCP_RESET_CODE_CLOSED);
dccp_fin(sk, skb);
dccp_set_state(sk, DCCP_CLOSED);
+ sk_wake_async(sk, 1, POLL_HUP);
}
static void dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb)