mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 09:35:12 +00:00
show: check UTS ns fd before show
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
a0ec1002b2
commit
65e8eb7a2d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue