fdinfo: Don't hide fdinfos' restore errors

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2015-04-09 21:27:18 +03:00
parent 8ec2ea8288
commit eff166e98c

View file

@ -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: