2
0
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:
Pavel Emelyanov
2013-08-21 01:06:58 +04:00
parent e03ab6b409
commit 9917c4fe34
15 changed files with 19 additions and 44 deletions

5
fifo.c
View File

@@ -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)