mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
sk-unix: fix indents
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
513dde00d2
commit
351b23bb1a
40
sk-unix.c
40
sk-unix.c
@@ -520,33 +520,33 @@ static int post_open_unix_sk(struct file_desc *d, int fd)
|
|||||||
if (peer == NULL)
|
if (peer == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pr_info("\tConnect %#x to %#x\n", ui->ue->ino, peer->ue->ino);
|
pr_info("\tConnect %#x to %#x\n", ui->ue->ino, peer->ue->ino);
|
||||||
|
|
||||||
fle = file_master(&ui->d);
|
fle = file_master(&ui->d);
|
||||||
|
|
||||||
/* Skip external sockets */
|
/* Skip external sockets */
|
||||||
if (!list_empty(&peer->d.fd_info_head))
|
if (!list_empty(&peer->d.fd_info_head))
|
||||||
futex_wait_while(&peer->bound, 0);
|
futex_wait_while(&peer->bound, 0);
|
||||||
|
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
addr.sun_family = AF_UNIX;
|
addr.sun_family = AF_UNIX;
|
||||||
memcpy(&addr.sun_path, peer->name, peer->ue->name.len);
|
memcpy(&addr.sun_path, peer->name, peer->ue->name.len);
|
||||||
|
|
||||||
if (connect(fle->fe->fd, (struct sockaddr *)&addr,
|
if (connect(fle->fe->fd, (struct sockaddr *)&addr,
|
||||||
sizeof(addr.sun_family) +
|
sizeof(addr.sun_family) +
|
||||||
peer->ue->name.len) < 0) {
|
peer->ue->name.len) < 0) {
|
||||||
pr_perror("Can't connect %#x socket", ui->ue->ino);
|
pr_perror("Can't connect %#x socket", ui->ue->ino);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (restore_sk_queue(fle->fe->fd, peer->ue->id))
|
if (restore_sk_queue(fle->fe->fd, peer->ue->id))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (rst_file_params(fle->fe->fd, ui->ue->fown, ui->ue->flags))
|
if (rst_file_params(fle->fe->fd, ui->ue->fown, ui->ue->flags))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (restore_socket_opts(fle->fe->fd, ui->ue->opts))
|
if (restore_socket_opts(fle->fe->fd, ui->ue->opts))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user