Commit c852a130 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

criu: remove a pid file in error cases

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 160a0d33
......@@ -2124,6 +2124,10 @@ out_kill:
kill(pi->pid.virt, SIGKILL);
}
if (opts.pidfile) {
if (unlink(opts.pidfile))
pr_perror("Unable to remove %s", opts.pidfile);
}
out:
fini_cgroup();
if (clean_remaps)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment