[CRIU] [PATCH 2/3] unix: don't restore name for unix stream
established sockets
Andrey Vagin
avagin at openvz.org
Thu Nov 1 09:32:19 EDT 2012
A stream socket may be bound, but is not listen yet.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
sk-unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sk-unix.c b/sk-unix.c
index 2c0e8fc..ced58e1 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -544,7 +544,7 @@ static int bind_unix_sk(int sk, struct unix_sk_info *ui)
{
struct sockaddr_un addr;
- if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state != TCP_LISTEN))
+ if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state == TCP_ESTABLISHED))
/*
* FIXME this can be done, but for doing this properly we
* need to bind socket to its name, then rename one to
--
1.7.11.7
More information about the CRIU
mailing list