mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 11:04:35 +00:00
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:
parent
7b8de6bce6
commit
adff973881
1 changed files with 3 additions and 0 deletions
|
|
@ -2131,6 +2131,9 @@ static int write_restored_pid(void)
|
|||
{
|
||||
int pid;
|
||||
|
||||
if (opts.check_only)
|
||||
return 0;
|
||||
|
||||
if (!opts.pidfile)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue