Commit 434c107d authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

unix: allow to dump closed sockets

Looks like it can be restored already.

#2408
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1c35b31d
......@@ -92,15 +92,8 @@ static int can_dump_unix_sk(const struct unix_sk_desc *sk)
switch (sk->state) {
case TCP_LISTEN:
break;
case TCP_ESTABLISHED:
break;
case TCP_CLOSE:
if (sk->type != SOCK_DGRAM) {
pr_err("Unexpected state %d on type %d\n",
sk->state, sk->type);
return 0;
}
break;
default:
pr_err("Unknown state %d\n", sk->state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment