mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
restore: do not kill restored process on failure
While trying to resurrect the test cases in test/other/rpc one test case was checking for returned errors during restore failures. The process was dumping itself and while the process kept on running it tried to restore from that checkpoint. That should fail as the PID is in use of the process doing the test. CRIU, however, killed the test process during restore failure. This is the fix as proposed by Andrei Vagin on the CRIU mailing list. Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
b2ec837f72
commit
b1ac40b8dc
1 changed files with 2 additions and 2 deletions
|
|
@ -2556,8 +2556,8 @@ out_kill:
|
|||
struct pstree_item *pi;
|
||||
|
||||
for_each_pstree_item(pi)
|
||||
if (vpid(pi) > 0)
|
||||
kill(vpid(pi), SIGKILL);
|
||||
if (pi->pid->real > 0)
|
||||
kill(pi->pid->real, SIGKILL);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue