[CRIU] [PATCH 1/3] unix: allow to dump closed sockets

Andrey Vagin avagin at openvz.org
Thu Nov 1 09:32:18 EDT 2012


Looks like it can be restored already.

https://bugzilla.openvz.org/show_bug.cgi?id=2408

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 sk-unix.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sk-unix.c b/sk-unix.c
index 2003600..2c0e8fc 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -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);
-- 
1.7.11.7



More information about the CRIU mailing list