forked from checkpoint-restore/criu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pidfd: Allow processes to have common dead pidfd
This patch ensures that the process that creates the tmp process is the one that kills and waits for it when all pidfds have been opened. We do this by keeping track of the count of dead pidfds that each process has opened. When the count for the creator of the tmp process reaches 0, it waits for all other processes to open pidfds and then kills and waits for the tmp process. Fixes: checkpoint-restore#2496 Signed-off-by: Bhavik Sachdev <[email protected]>
- Loading branch information
Showing
1 changed file
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters