mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
unix: Fix double restoring of peerless unix sockets, which are peers for others
Since commit ea747b0755 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@odin.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
72b7351011
commit
48b1966255
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue