[CRIU] [PATCH 2/2] restore: don't write pidfile if check_only is set
Andrei Vagin
avagin at openvz.org
Sat Sep 23 00:14:33 MSK 2017
From: Andrei Vagin <avagin at virtuozzo.com>
If check_only is set, criu kills all processes instead of resuming them.
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
criu/cr-restore.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 4d6f6e447..0ca00a9d9 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -2135,6 +2135,9 @@ static int write_restored_pid(void)
{
int pid;
+ if (opts.check_only)
+ return 0;
+
if (!opts.pidfile)
return 0;
--
2.13.3
More information about the CRIU
mailing list