Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c/r: use /proc/self/tid/children instead of pidfile
All we really needed a unique temp file for was passing the pid. Since CRIU opened this with O_EXCL | O_CREAT, this was "safe" (users could still overwrite it afterwards, but the monitor would immediately die since the only valid number in there was the init process). In any case, we can just read /proc/self/tid/children, which lists the child process. Closes #1150 Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
- Loading branch information
Tycho Andersen
committed
Aug 26, 2016
1 parent
e854c5e
commit 75d219f
Showing
1 changed file
with
14 additions
and
24 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