Commit 7a203afe authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: fix index for accessing entries of the parent_act array

SIGMAX is a valid value, but the 0 signal doesn't exist.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8311b435
......@@ -682,7 +682,7 @@ static int prepare_sigactions(void)
continue;
}
if (sa_inherited(sig, &act))
if (sa_inherited(sig - 1, &act))
continue;
/*
......@@ -695,7 +695,7 @@ static int prepare_sigactions(void)
goto err;
}
parent_act[sig] = act;
parent_act[sig - 1] = act;
rst++;
}
......
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