[CRIU] [PATCH] pipes: Add test that pipe data is restored without
errors
Cyrill Gorcunov
gorcunov at openvz.org
Wed May 23 09:03:52 EDT 2012
This eliminates the warning below as well
| pipes.c: In function ‘open_pipe’:
| pipes.c:252:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
pipes.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pipes.c b/pipes.c
index 80684f5..ebabca1 100644
--- a/pipes.c
+++ b/pipes.c
@@ -266,6 +266,8 @@ static int open_pipe(struct file_desc *d)
}
ret = restore_pipe_data(pfd[1], pi);
+ if (ret)
+ return -1;
sock = socket(PF_UNIX, SOCK_DGRAM, 0);
if (sock < 0) {
--
1.7.7.6
More information about the CRIU
mailing list