Commit a4685cd3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: check own sid instead of parent's one

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1264a7a9
......@@ -780,7 +780,7 @@ static void restore_sid(void)
xid_fail();
}
} else {
sid = getsid(getppid());
sid = getsid(getpid());
if (sid != me->sid) {
/* Skip the root task if it's not init */
if (me == root_item && root_item->pid.virt != 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment