Commit 1dd4810a authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: check that pending signals are handled after resuming processes

This patch detects the race, when a signal hanler could be executed
during restore.
More details are in: 5d18eca3 restorer: Block signals early
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4c52aaf4
......@@ -37,6 +37,11 @@ static void sig_handler(int signal, siginfo_t *info, void *data)
test_msg("signo=%d si_code=%x\n", signal, info->si_code);
if (test_go()) {
err("The signal is received before unlocking");
return;
}
switch (signal) {
case SIGCHLD:
if ((info->si_code & CLD_EXITED) &&
......
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