[CRIU] [PATCH] unix: Fix double restoring of peerless unix sockets, which are peers for others
Kirill Tkhai
ktkhai at odin.com
Thu Dec 17 03:25:25 PST 2015
Since commit ea747b075508faa5780553969d87fb21fa3c487a receive queue for
such DGRAM sockets restores twice: in open_unix_sk() and post_open_unix_sk().
It should be made only once. So, keep that commit logic only for sockets
without alive sender.
Signed-off-by: Kirill Tkhai <ktkhai at odin.com>
---
sk-unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sk-unix.c b/sk-unix.c
index 1c0d632..608eb3e 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -1133,7 +1133,7 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
close(sks[1]);
sk = sks[0];
- } else if (ui->ue->type == SOCK_DGRAM) {
+ } else if (ui->ue->type == SOCK_DGRAM && !ui->queuer) {
struct sockaddr_un addr;
int sks[2];
More information about the CRIU
mailing list