Commit 000404ad authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Properly check si_code of sigchild

The CLD_XXX macros are not bit fields.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 78ced79e
......@@ -938,7 +938,7 @@ static void sigchld_handler(int signal, siginfo_t *siginfo, void *data)
int status;
int exit;
exit = siginfo->si_code & CLD_EXITED;
exit = (siginfo->si_code == CLD_EXITED);
status = siginfo->si_status;
if (!current || status)
goto err;
......
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