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 <avagin@virtuozzo.com>
This commit is contained in:
Andrei Vagin 2017-09-23 00:14:33 +03:00
parent 7b8de6bce6
commit adff973881

View file

@ -2131,6 +2131,9 @@ static int write_restored_pid(void)
{
int pid;
if (opts.check_only)
return 0;
if (!opts.pidfile)
return 0;