[CRIU] [PATCH] show: check UTS ns fd before show
Kinsbursky Stanislav
skinsbursky at openvz.org
Wed Feb 8 09:29:54 EST 2012
Signed-off-by: Stanislav Kinsbursky <skinsbursky 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