[CRIU] [PATCH] fdinfo: Don't hide fdinfos' restore errors

Pavel Emelyanov xemul at parallels.com
Thu Apr 9 11:27:18 PDT 2015


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 files.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/files.c b/files.c
index ac1e60f..dfb9a64 100644
--- a/files.c
+++ b/files.c
@@ -1023,6 +1023,9 @@ int prepare_fds(struct pstree_item *me)
 			break;
 	}
 
+	if (ret)
+		goto out_w;
+
 	for (state = 0; state < ARRAY_SIZE(states); state++) {
 		if (!states[state].required) {
 			pr_debug("Skipping %s fd stage\n", states[state].name);
@@ -1037,7 +1040,7 @@ int prepare_fds(struct pstree_item *me)
 		if (ret)
 			break;
 	}
-
+out_w:
 	if (rsti(me)->fdt)
 		futex_inc_and_wake(&rsti(me)->fdt->fdt_lock);
 out:
-- 
1.9.3



More information about the CRIU mailing list