2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +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

View File

@@ -822,10 +822,8 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base)
pr_info(" `- Got %#x peer %#x (name %s)\n",
ui->ue->ino, ui->ue->peer,
ui->name ? (ui->name[0] ? ui->name : &ui->name[1]) : "-");
file_desc_add(&ui->d, ui->ue->id, &unix_desc_ops);
list_add_tail(&ui->list, &unix_sockets);
return 0;
return file_desc_add(&ui->d, ui->ue->id, &unix_desc_ops);
}
int collect_unix_sockets(void)