[CRIU] [PATCH cr 07/11] restore: restore sid of task which isn't
leaders and isn't a child of init (v4)
Andrey Vagin
avagin at openvz.org
Thu Jun 21 16:39:01 EDT 2012
It's sign, that a parent has been changed sid after forking a child.
We should know a sid with which a process was born, because in a processes
chain, more then one process might change SID.
v2: fix names of variables
v3: prevent rewriting of born_sid
v4: Abort the restorer with error message if a born_sid can't be determing.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-dump.c | 1 +
cr-restore.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++----
include/crtools.h | 1 +
3 files changed, 58 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-restore-restore-sid-of-task-which-isn-t-leaders-and-.patch
Type: text/x-patch
Size: 3233 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120622/ee0bb620/0007-restore-restore-sid-of-task-which-isn-t-leaders-and-.bin
More information about the CRIU
mailing list