[CRIU] [PATCH 2/2] sk-unix: queuer should be set for peer
Tycho Andersen
tycho.andersen at canonical.com
Sun Aug 2 10:22:03 PDT 2015
On Sat, Aug 01, 2015 at 10:26:42PM +0300, Andrey Vagin wrote:
> because we are going to restore data of peer.
Heh, whoops. I guess this just caused all the restoration to be a
no-op? Anyway,
Acked-by: Tycho Andersen <tycho.andersen at canonical.com>
> Anyway this is wrong, because we need to restore a message with a sender
> address.
Can you elaborate?
Thanks,
Tycho
> Cc: Tycho Andersen <tycho.andersen at canonical.com>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
> sk-unix.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sk-unix.c b/sk-unix.c
> index 7a99728..d05eb1a 100644
> --- a/sk-unix.c
> +++ b/sk-unix.c
> @@ -1267,8 +1267,8 @@ int resolve_unix_peers(void)
> }
>
> ui->peer = peer;
> - if (!ui->queuer)
> - ui->queuer = ui->ue->ino;
> + if (!peer->queuer)
> + peer->queuer = ui->ue->ino;
> if (ui == peer)
> /* socket connected to self %) */
> continue;
> --
> 2.1.0
>
More information about the CRIU
mailing list