[CRIU] [PATCH 11/21] Update to 239e1ff597417acfcc8eade88f86e5a21800bb85

Cyrill Gorcunov gorcunov at openvz.org
Wed Jun 6 18:21:51 EDT 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pipes.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/pipes.c b/pipes.c
index 1556e7c..811ba37 100644
--- a/pipes.c
+++ b/pipes.c
@@ -396,19 +396,17 @@ err:
 static int dump_one_pipe(int lfd, u32 id, const struct fd_parms *p)
 {
 	struct pipe_entry pe;
-	int fd_pipes;
 
 	pr_info("Dumping pipe %d with id %#x pipe_id %#x\n", lfd, id, p->id);
 
-	fd_pipes = fdset_fd(glob_fdset, CR_FD_PIPES);
+	pe.id		= id;
+	pe.pipe_id	= p->id;
+	pe.flags	= p->flags;
+	pe.fown		= p->fown;
 
-	pe.id = id;
-	pe.pipe_id = p->id;
-	pe.flags = p->flags;
-	pe.fown = p->fown;
-
-	if (write_img(fd_pipes, &pe))
+	if (write_img(fdset_fd(glob_fdset, CR_FD_PIPES), &pe))
 		return -1;
+
 	return dump_one_pipe_data(lfd, id, p);
 }
 
-- 
1.7.7.6



More information about the CRIU mailing list