mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
pipes: Use add_post_prepare_cb_once
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
3e5b374288
commit
c5615e6e5c
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue