Commit 8c4017d9 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: print message about sid only if it's restored

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9b8a2067
......@@ -772,8 +772,8 @@ static void restore_sid(void)
* we can call setpgid() on custom values.
*/
pr_info("Restoring %d to %d sid\n", me->pid.virt, me->sid);
if (me->pid.virt == me->sid) {
pr_info("Restoring %d to %d sid\n", me->pid.virt, me->sid);
sid = setsid();
if (sid != me->sid) {
pr_perror("Can't restore sid (%d)", sid);
......
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