diff --git a/criu/seize.c b/criu/seize.c index d392259bc..ae270022f 100644 --- a/criu/seize.c +++ b/criu/seize.c @@ -983,6 +983,11 @@ int collect_pstree(void) */ alarm(opts.timeout); + ret = run_plugins(PAUSE_DEVICES, pid); + if (ret < 0 && ret != -ENOTSUP) { + goto err; + } + if (opts.freeze_cgroup && cgroup_version()) goto err; @@ -991,11 +996,6 @@ int collect_pstree(void) if (opts.freeze_cgroup && freeze_processes()) goto err; - ret = run_plugins(PAUSE_DEVICES, pid); - if (ret < 0 && ret != -ENOTSUP) { - goto err; - } - if (!opts.freeze_cgroup && compel_interrupt_task(pid)) { set_cr_errno(ESRCH); goto err;