mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
rst: Compact file-descs collects a bit
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
5
fifo.c
5
fifo.c
@@ -125,8 +125,6 @@ static int collect_one_fifo(void *o, ProtobufCMessage *base)
|
||||
pr_info("Collected fifo entry ID %#x PIPE ID %#x\n",
|
||||
info->fe->id, info->fe->pipe_id);
|
||||
|
||||
file_desc_add(&info->d, info->fe->id, &fifo_desc_ops);
|
||||
|
||||
/* check who will restore the fifo data */
|
||||
list_for_each_entry(f, &fifo_head, list)
|
||||
if (f->fe->pipe_id == info->fe->pipe_id)
|
||||
@@ -140,7 +138,8 @@ static int collect_one_fifo(void *o, ProtobufCMessage *base)
|
||||
info->restore_data = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return file_desc_add(&info->d, info->fe->id, &fifo_desc_ops);
|
||||
|
||||
}
|
||||
|
||||
int collect_fifo(void)
|
||||
|
Reference in New Issue
Block a user