From adff973881ed6ccc7efa3eb94b20693ea624c2bf Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Sat, 23 Sep 2017 00:14:33 +0300 Subject: [PATCH] restore: don't write pidfile if check_only is set If check_only is set, criu kills all processes instead of resuming them. Signed-off-by: Andrei Vagin --- criu/cr-restore.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 6458904e0..a294fce24 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -2131,6 +2131,9 @@ static int write_restored_pid(void) { int pid; + if (opts.check_only) + return 0; + if (!opts.pidfile) return 0;