[CRIU] [PATCH] restore: add missing break-s

Andrey Vagin avagin at openvz.org
Thu Mar 31 22:20:05 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/cr-restore.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 2f51344..0720c07 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1042,11 +1042,13 @@ static int wait_on_helpers_zombies(void)
 				pr_perror("Wait on %d zombie failed\n", pid);
 				return -1;
 			}
+			break;
 		case TASK_HELPER:
 			if (waitpid(pid, &status, 0) != pid) {
 				pr_perror("waitpid for helper %d failed", pid);
 				return -1;
 			}
+			break;
 		}
 	}
 
-- 
2.5.0



More information about the CRIU mailing list