2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

crtools: write a pid of a root task in a specified file

When we restore a pid namespace the root task will get some unknown pid
in the original (i.e. -- the ns crtools a launched from) one. To find
this pid out one can use this option -- it will make the pid obtained by
the new init to be written into a pid file.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-08-14 12:54:00 +04:00
committed by Pavel Emelyanov
parent a5ac06f503
commit aabb56bd66
3 changed files with 20 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ struct cr_options {
bool log_file_per_pid;
char *output;
char *root;
char *pidfile;
};
extern struct cr_options opts;