[CRIU] [PATCH] sockets: Don't print warning in case collection succeeded
Pavel Emelyanov
xemul at parallels.com
Fri Jun 5 05:53:02 PDT 2015
Reported-by: criuport at gmail.com
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
sockets.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sockets.c b/sockets.c
index 73c4b2e..134d9b5 100644
--- a/sockets.c
+++ b/sockets.c
@@ -716,7 +716,7 @@ int collect_sockets(struct ns_id *ns)
close(nl);
ns->net.nlsk = -1;
- if (ns->pid == getpid()) {
+ if (err && (ns->pid == getpid())) {
/*
* If netns isn't dumped, criu will fail only
* if an unsupported socket will be really dumped.
--
1.9.3
More information about the CRIU
mailing list