[CRIU] [PATCH 03/18] pipes: Use add_post_prepare_cb_once
Cyrill Gorcunov
gorcunov at openvz.org
Sun Apr 9 15:28:35 PDT 2017
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
criu/pipes.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/criu/pipes.c b/criu/pipes.c
index 4d15d739e358..8b3fd6f84342 100644
--- a/criu/pipes.c
+++ b/criu/pipes.c
@@ -372,9 +372,8 @@ int collect_one_pipe_ops(void *o, ProtobufCMessage *base, struct file_desc_ops *
list_add(&pi->pipe_list, &tmp->pipe_list);
}
- if (list_empty(&pipes))
- if (add_post_prepare_cb(mark_pipe_master, NULL))
- return -1;
+ if (add_post_prepare_cb_once(mark_pipe_master, NULL))
+ return -1;
list_add_tail(&pi->list, &pipes);
--
2.7.4
More information about the CRIU
mailing list