Commit e2520f81 authored by Jan Kiszka's avatar Jan Kiszka Committed by Philippe Gerum

cobalt/posix: Evaluate return code of signal_copyinfo extensions

They may fail as well, requiring us to return that code to the caller of
signal_wait.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent daf445d4
......@@ -349,17 +349,18 @@ done:
ret = sys32_put_siginfo(u_si, sip, overrun);
if (!ret)
/* Allow an extended target to receive more data. */
cobalt_call_extension(signal_copyinfo_compat,
&curr->extref, ret, u_si, sip,
overrun);
ret = cobalt_call_extension(signal_copyinfo_compat,
&curr->extref, ret, u_si,
sip, overrun);
} else
#endif
{
ret = signal_put_siginfo(u_si, sip, overrun);
if (!ret)
/* Allow an extended target to receive more data. */
cobalt_call_extension(signal_copyinfo, &curr->extref,
ret, u_si, sip, overrun);
ret = cobalt_call_extension(signal_copyinfo,
&curr->extref, ret, u_si,
sip, overrun);
}
out:
......
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