mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
crtools: make to be able to split messages by pid
If the option --log-pid is set, each process will have an own log file. Otherwise PID is added to each log message. A message can't be bigger than one page minus some bytes for pid. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
ad7c18a1d4
commit
fc7bedc50a
@@ -605,6 +605,10 @@ static int restore_task_with_children(void *_arg)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
ret = log_init_by_pid();
|
||||
if (ret < 0)
|
||||
exit(1);
|
||||
|
||||
list_for_each_entry(me, &tasks, list)
|
||||
if (me->pid == pid)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user