2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

dump: Check for pids reuse at suspend

While we try to seize task it can die and give its pid to
somebody else. This can break pstree consistency. Check for
parent being valid after task is seized.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Pavel Emelyanov
2012-03-01 19:04:31 +04:00
committed by Cyrill Gorcunov
parent f8a18edd44
commit 199e8d8248
6 changed files with 32 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ struct proc_pid_stat_small {
int pid;
char comm[PROC_TASK_COMM_LEN];
char state;
int ppid;
};
struct proc_pid_stat {