]> git.ipfire.org Git - thirdparty/lxc.git/commit
c/r: use /proc/self/tid/children instead of pidfile 1152/head
authorTycho Andersen <tycho.andersen@canonical.com>
Fri, 26 Aug 2016 16:07:19 +0000 (16:07 +0000)
committerTycho Andersen <tycho.andersen@canonical.com>
Fri, 26 Aug 2016 16:26:50 +0000 (16:26 +0000)
commit75d219f0cc6be29d192677c5a8bd1bfd9528437b
treede5ee26b3eef8d23f9ef17de5a7d9f3b84b353e5
parente854c5e315796a9efdce32518d46857792c67126
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>
src/lxc/criu.c