[CRIU] Re: [PATCH] show: check UTS ns fd before show
Pavel Emelyanov
xemul at parallels.com
Thu Feb 9 03:31:40 EST 2012
On 02/08/2012 06:29 PM, Kinsbursky Stanislav wrote:
>
>
> Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
Acked-by: Pavel Emelyanov <xemul at parallels.com>
> ---
> namespaces.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/namespaces.c b/namespaces.c
> index 93f3b46..457bfd9 100644
> --- a/namespaces.c
> +++ b/namespaces.c
> @@ -122,7 +122,8 @@ int try_show_namespaces(int ns_pid)
> if (!fdset)
> return -1;
>
> - show_utsns(fdset->fds[CR_FD_UTSNS]);
> + if (fdset->fds[CR_FD_UTSNS] != -1)
> + show_utsns(fdset->fds[CR_FD_UTSNS]);
>
> close_cr_fdset(&fdset);
> return 0;
>
More information about the CRIU
mailing list