mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
rst: Introduce fine-grained pgid-restore synchronization
We can restore task's pgid which is not equal to its pid, only when the respective group leader is alive. To make restore reliable we wait for all group leaders to restore using separate restore stage. It's better to optimize this -- each task has a pointer on its group leader and waits for one to become such. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -182,6 +182,11 @@ struct rst_info {
|
||||
|
||||
int service_fd_id;
|
||||
struct fdt *fdt;
|
||||
|
||||
union {
|
||||
struct pstree_item *pgrp_leader;
|
||||
futex_t pgrp_set;
|
||||
};
|
||||
};
|
||||
|
||||
static inline int in_vma_area(struct vma_area *vma, unsigned long addr)
|
||||
|
Reference in New Issue
Block a user