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:
committed by
Cyrill Gorcunov
parent
f8a18edd44
commit
199e8d8248
@@ -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 {
|
||||
|
Reference in New Issue
Block a user