Commit f8d14290 authored by Pavel Emelyanov's avatar Pavel Emelyanov

sockets: Don't print warning in case collection succeeded

Reported-by: criuport@gmail.com
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3100910b
...@@ -716,7 +716,7 @@ int collect_sockets(struct ns_id *ns) ...@@ -716,7 +716,7 @@ int collect_sockets(struct ns_id *ns)
close(nl); close(nl);
ns->net.nlsk = -1; ns->net.nlsk = -1;
if (ns->pid == getpid()) { if (err && (ns->pid == getpid())) {
/* /*
* If netns isn't dumped, criu will fail only * If netns isn't dumped, criu will fail only
* if an unsupported socket will be really dumped. * if an unsupported socket will be really dumped.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment